diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-09-07 15:14:34 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-09-07 15:14:34 +0200 |
commit | 1b02831d802ab8327a4b73528c7200289f2a0279 (patch) | |
tree | 3cfa55f3807c6ed991d8677256a3e8dceea468f8 /svx | |
parent | RTF import: adapt getProperties() to createStyleProperties() (diff) | |
download | core-1b02831d802ab8327a4b73528c7200289f2a0279.tar.gz core-1b02831d802ab8327a4b73528c7200289f2a0279.zip |
cppcheck: Logical disjunction always evaluates to true
Change-Id: I527c010a49210ccaa4840ea142525643944b642d
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdotextdecomposition.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx index b4d52033e06c..8d8fd4953749 100644 --- a/svx/source/svdraw/svdotextdecomposition.cxx +++ b/svx/source/svdraw/svdotextdecomposition.cxx @@ -1234,13 +1234,10 @@ void impCreateScrollTiming(const SfxItemSet& rSet, drawinglayer::animation::Anim } // loop. In loop, move through - if(nRepeat || 0L == nRepeat) - { - drawinglayer::animation::AnimationEntryLoop aLoop(nRepeat ? nRepeat : ENDLESS_LOOP); - drawinglayer::animation::AnimationEntryLinear aThrough(fTimeFullPath, fFrequency, bForward ? 0.0 : 1.0, bForward ? 1.0 : 0.0); - aLoop.append(aThrough); - rAnimList.append(aLoop); - } + drawinglayer::animation::AnimationEntryLoop aLoop(nRepeat ? nRepeat : ENDLESS_LOOP); + drawinglayer::animation::AnimationEntryLinear aThrough(fTimeFullPath, fFrequency, bForward ? 0.0 : 1.0, bForward ? 1.0 : 0.0); + aLoop.append(aThrough); + rAnimList.append(aLoop); if(0L != nRepeat && bVisisbleWhenStopped) { |