[ooo-build-commit] patches/dev300
Kohei Yoshida
kohei at kemper.freedesktop.org
Thu Oct 22 09:44:11 PDT 2009
patches/dev300/calc-selection-fixed-cursor.diff | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 40324b7268b7e6b3c2fd0eaa1448840fbaff2251
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Thu Oct 22 12:46:00 2009 -0400
Correct fix for the mirrored range selection bug in RTL mode.
* patches/dev300/calc-selection-fixed-cursor.diff: my previous fix
only worked part of the time. This is hopefully the correct fix.
(n#542684)
diff --git a/patches/dev300/calc-selection-fixed-cursor.diff b/patches/dev300/calc-selection-fixed-cursor.diff
index e0375b1..f67b63d 100644
--- a/patches/dev300/calc-selection-fixed-cursor.diff
+++ b/patches/dev300/calc-selection-fixed-cursor.diff
@@ -153,7 +153,7 @@ index 4cb00fb..3f80397 100644
SCsCOLROW nRTLSign = 1;
if ( pData->GetDocument()->IsLayoutRTL( pData->GetTabNo() ) )
{
-@@ -172,38 +218,61 @@ void ScCellShell::GetStateCursor( SfxItemSet& /* rSet */ )
+@@ -172,38 +218,64 @@ void ScCellShell::GetStateCursor( SfxItemSet& /* rSet */ )
void ScCellShell::ExecuteCursorSel( SfxRequest& rReq )
{
@@ -179,7 +179,10 @@ index 4cb00fb..3f80397 100644
- switch ( nSlotId )
+ // Horizontal direction depends on whether or not the UI language is RTL.
-+ SCsCOL nMovX = Application::GetSettings().GetLayoutRTL() ? -1 : 1;
++ SCsCOL nMovX = 1;
++ if (GetViewData()->GetDocument()->IsLayoutRTL(GetViewData()->GetTabNo()))
++ // mirror horizontal movement for right-to-left mode.
++ nMovX = -1;
+
+ switch (nSlotId)
{
More information about the ooo-build-commit
mailing list