More SVACE fixes 53/98253/2
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 16 Nov 2016 14:23:33 +0000 (14:23 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 16 Nov 2016 17:45:23 +0000 (17:45 +0000)
Change-Id: I3f912024ba53d612af0a41141b4afa64c79d7ad1

dali-toolkit/internal/visuals/transition-data-impl.cpp
dali-toolkit/public-api/controls/scrollable/item-view/item-layout.h

index 8ccb354..a91b8ab 100644 (file)
@@ -174,7 +174,7 @@ TransitionData::Animator* TransitionData::ConvertMap( const Property::Map& map)
             bool valid = true;
             Vector4 controlPoints;
             Property::Array *array = value.GetArray();
-            if( array->Count() >= 4 )
+            if( array && array->Count() >= 4 )
             {
               for( size_t vecIdx = 0; vecIdx < 4; ++vecIdx )
               {
index e013196..e9c5068 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_TOOLKIT_ITEM_LAYOUT_H__
 
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 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.
@@ -79,8 +79,11 @@ struct ItemRange
    */
   ItemRange& operator=(const ItemRange& range)
   {
-    begin = range.begin;
-    end = range.end;
+    if( this != &range )
+    {
+      begin = range.begin;
+      end = range.end;
+    }
     return *this;
   }