X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller-impl.h;h=3073611f287e3db2766e2668f491f31103f647db;hb=3e39b3bd20678fc2aba9618f782a830014f2062a;hp=83aafe40c0b7493424a0c4a2c848dc116c2de905;hpb=e2aa6c795f24794c33e2d2bfde3adeefefad6cf4;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-controller-impl.h b/dali-toolkit/internal/text/text-controller-impl.h index 83aafe4..3073611 100644 --- a/dali-toolkit/internal/text/text-controller-impl.h +++ b/dali-toolkit/internal/text/text-controller-impl.h @@ -20,13 +20,13 @@ // EXTERNAL INCLUDES #include -#include #include // INTERNAL INCLUDES #include #include #include +#include #include namespace Dali @@ -230,6 +230,7 @@ struct Controller::Impl ~Impl() { + delete mFontDefaults; delete mEventData; } @@ -278,6 +279,12 @@ struct Controller::Impl return ( mEventData && mEventData->mIsShowingPlaceholderText ); } + bool IsShowingRealText() const + { + return ( !IsShowingPlaceholderText() && + 0u != mLogicalModel->mText.Count() ); + } + /** * @brief Called when placeholder-text is hidden */