Merge "Fix for cursor position when a void text is set." into devel/master
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 20 Aug 2015 13:09:53 +0000 (06:09 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 20 Aug 2015 13:09:53 +0000 (06:09 -0700)
dali-toolkit/internal/text/text-controller-impl.cpp

index 3da7138..7dd88e4 100644 (file)
@@ -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.