[Tizen] Change the API macros for layout
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / layouting / measured-size.h
index ea592ad..4acdd70 100644 (file)
@@ -61,8 +61,11 @@ public:
 
   MeasuredSize& operator=( const MeasuredSize& rhs )
   {
-    this->mMeasuredSize = rhs.mMeasuredSize;
-    this->mState = rhs.mState;
+    if( this != &rhs )
+    {
+      this->mMeasuredSize = rhs.mMeasuredSize;
+      this->mState = rhs.mState;
+    }
     return *this;
   }