projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fix possible error if negative grid columns set" into devel/master
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
devel-api
/
layouting
/
measured-size.h
diff --git
a/dali-toolkit/devel-api/layouting/measured-size.h
b/dali-toolkit/devel-api/layouting/measured-size.h
index
ff937cf
..
4acdd70
100644
(file)
--- a/
dali-toolkit/devel-api/layouting/measured-size.h
+++ b/
dali-toolkit/devel-api/layouting/measured-size.h
@@
-19,6
+19,7
@@
#include <dali/public-api/common/dali-common.h>
#include <dali-toolkit/devel-api/layouting/layout-length.h>
#include <dali/public-api/common/dali-common.h>
#include <dali-toolkit/devel-api/layouting/layout-length.h>
+#include <dali-toolkit/public-api/dali-toolkit-common.h>
namespace Dali
{
namespace Dali
{
@@
-28,7
+29,7
@@
namespace Toolkit
/**
* Class that encodes a measurement and a measure state, which is set if the measured size is too small.
*/
/**
* Class that encodes a measurement and a measure state, which is set if the measured size is too small.
*/
-class DALI_
IMPOR
T_API MeasuredSize
+class DALI_
TOOLKI
T_API MeasuredSize
{
public:
{
public:
@@
-39,7
+40,8
@@
public:
};
MeasuredSize()
};
MeasuredSize()
- : mMeasuredSize( 0u )
+ : mMeasuredSize( 0u ),
+ mState ( MeasuredSize::State::MEASURED_SIZE_OK )
{
}
{
}
@@
-59,8
+61,11
@@
public:
MeasuredSize& operator=( const MeasuredSize& rhs )
{
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;
}
return *this;
}