Merge "Fix SVACE issue" into devel/master
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 26 Jun 2019 09:14:37 +0000 (09:14 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 26 Jun 2019 09:14:37 +0000 (09:14 +0000)
dali-toolkit/internal/visuals/animated-vector-image/vector-rasterize-thread.cpp

index e20d23c..038b608 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -214,7 +214,7 @@ void VectorRasterizeThread::SetLoopCount( int32_t count )
 void VectorRasterizeThread::SetPlayRange( uint32_t startFrame, uint32_t endFrame )
 {
   // Make sure the range specified is between 0 and the total frame number
-  if( startFrame >= 0 && startFrame < mTotalFrame && endFrame >= 0 && endFrame < mTotalFrame )
+  if( ( startFrame < mTotalFrame ) && ( endFrame < mTotalFrame ) )
   {
     // If the range is not in order swap values
     if( startFrame > endFrame )