Fix for cursor. 08/39308/2
authorVictor Cebollada <v.cebollada@samsung.com>
Thu, 7 May 2015 15:06:33 +0000 (16:06 +0100)
committerVíctor Cebollada <v.cebollada@samsung.com>
Fri, 15 May 2015 12:47:54 +0000 (05:47 -0700)
  Avoid the jump of the grab handle when there is a mix of rtl and ltr text.

Change-Id: I04a72452ab2cd1d2289c669bbf19b653abbba042
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali-toolkit/internal/text/logical-model-impl.cpp
dali-toolkit/internal/text/text-controller.cpp

index 5a43e35..2faca97 100644 (file)
@@ -502,7 +502,7 @@ void LogicalModel::SetVisualToLogicalMap( const BidirectionalLineInfoRun* const
       if( bidirectionalParagraph &&
           ( bidirectionalParagraph->characterRun.characterIndex == index ) )
       {
-        isRightToLeftParagraph = true;
+        isRightToLeftParagraph = *( modelCharacterDirections + index );
       }
 
       if( 0u == index )
index 8c3731a..6400370 100644 (file)
@@ -862,7 +862,7 @@ bool Controller::DoRelayout( const Size& size,
     layoutSize = mImpl->mVisualModel->GetActualSize();
   }
 
-  DALI_LOG_INFO( gLogFilter, Debug::Verbose, "<--Controller::DoRelayout no glyphs, view updated %s\n", ( viewUpdated ? "true" : "false" ) );
+  DALI_LOG_INFO( gLogFilter, Debug::Verbose, "<--Controller::DoRelayout, view updated %s\n", ( viewUpdated ? "true" : "false" ) );
   return viewUpdated;
 }