From 1a4912f5544cef6fdc6c85bc24c08d6c5ec95b2e Mon Sep 17 00:00:00 2001 From: "v.cebollada" Date: Wed, 19 Aug 2015 13:51:44 +0900 Subject: [PATCH 1/1] Fix for cursor position when a void text is set. Change-Id: Iffc48de856e923567d07def0dd7feac2cf733092 Signed-off-by: v.cebollada --- dali-toolkit/internal/text/text-controller-impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali-toolkit/internal/text/text-controller-impl.cpp b/dali-toolkit/internal/text/text-controller-impl.cpp index 3da7138..7dd88e4 100644 --- a/dali-toolkit/internal/text/text-controller-impl.cpp +++ b/dali-toolkit/internal/text/text-controller-impl.cpp @@ -1709,7 +1709,7 @@ void Controller::Impl::UpdateCursorPosition() return; } - if( IsShowingPlaceholderText() ) + if( IsShowingPlaceholderText() || ( 0u == mLogicalModel->mText.Count() ) ) { // Do not want to use the place-holder text to set the cursor position. -- 2.7.4