Fix SVACE issue 12/208512/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 25 Jun 2019 10:20:16 +0000 (11:20 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 25 Jun 2019 10:20:19 +0000 (11:20 +0100)
No need to check that an unsigned int is greater than 0

Change-Id: I8d898e87578d8aeec61e828af4a798189392741f

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 )