Fix for cursor position when a void text is set. 05/46305/1
authorv.cebollada <v.cebollada@samsung.com>
Wed, 19 Aug 2015 04:51:44 +0000 (13:51 +0900)
committerv.cebollada <v.cebollada@samsung.com>
Wed, 19 Aug 2015 05:24:01 +0000 (14:24 +0900)
Change-Id: Iffc48de856e923567d07def0dd7feac2cf733092
Signed-off-by: v.cebollada <v.cebollada@samsung.com>
dali-toolkit/internal/text/text-controller-impl.cpp

index 3da7138..7dd88e4 100644 (file)
@@ -1709,7 +1709,7 @@ void Controller::Impl::UpdateCursorPosition()
     return;
   }
 
     return;
   }
 
-  if( IsShowingPlaceholderText() )
+  if( IsShowingPlaceholderText() || ( 0u == mLogicalModel->mText.Count() ) )
   {
     // Do not want to use the place-holder text to set the cursor position.
 
   {
     // Do not want to use the place-holder text to set the cursor position.