svx/source/svdraw/svdotextdecomposition.cxx |   11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

New commits:
commit 1b02831d802ab8327a4b73528c7200289f2a0279
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Sun Sep 7 15:14:34 2014 +0200

    cppcheck: Logical disjunction always evaluates to true
    
    Change-Id: I527c010a49210ccaa4840ea142525643944b642d

diff --git a/svx/source/svdraw/svdotextdecomposition.cxx 
b/svx/source/svdraw/svdotextdecomposition.cxx
index b4d5203..8d8fd49 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)
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to