lottie: use testFlag() api to test the flag. 15/195115/3
authorsubhransu mohanty <sub.mohanty@samsung.com>
Tue, 11 Dec 2018 01:50:07 +0000 (10:50 +0900)
committersubhransu mohanty <sub.mohanty@samsung.com>
Wed, 12 Dec 2018 04:31:27 +0000 (13:31 +0900)
Change-Id: I3ee5341c66562241f0d83ee396347804d5b0eb7d

src/lottie/lottieitem.cpp

index dcf3f8b..631dae1 100644 (file)
@@ -389,7 +389,7 @@ void LOTLayerItem::update(int frameNumber, const VMatrix &parentMatrix,
     }
 
     // 5. if no parent property change and layer is static then nothing to do.
-    if ((flag() & DirtyFlagBit::None) && isStatic()) return;
+    if (flag().testFlag(DirtyFlagBit::None) && isStatic()) return;
 
     // 6. update the content of the layer
     updateContent();