From: minho.sun Date: Fri, 5 Jan 2018 09:47:17 +0000 (+0900) Subject: Make sure mClearAll is true after calling GetNaturalSize() X-Git-Tag: dali_1.3.7~6^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=04949a42de50ce2ab83b1134dc2a7a989834a0c1 Make sure mClearAll is true after calling GetNaturalSize() Currently, GetNaturalSize() sets mClearAll to false. It can make bug when calling GetHeightForWidth right after GetNaturalSize(). Change-Id: Ic290bcdbb649402a1c06f32b63eadb434d7bf867 Signed-off-by: minho.sun --- diff --git a/dali-toolkit/internal/text/text-controller.cpp b/dali-toolkit/internal/text/text-controller.cpp index c618006..6580790 100755 --- a/dali-toolkit/internal/text/text-controller.cpp +++ b/dali-toolkit/internal/text/text-controller.cpp @@ -1877,6 +1877,7 @@ Vector3 Controller::GetNaturalSize() // Clear the update info. This info will be set the next time the text is updated. mImpl->mTextUpdateInfo.Clear(); + mImpl->mTextUpdateInfo.mClearAll = true; // Restore the actual control's size. mImpl->mModel->mVisualModel->mControlSize = actualControlSize;