diff options
author | Abdulaziz A Alayed <aalayed@kacst.edu.sa> | 2013-04-08 10:59:16 +0300 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-04-20 11:55:49 +0000 |
commit | 89feda6bfdeacb647d44cb432d5ebc2678c44c89 (patch) | |
tree | 5d34b7a9eb64c4850d2477ef2b56f89b1753ab8d /sc | |
parent | gallery: add some hints (diff) | |
download | core-89feda6bfdeacb647d44cb432d5ebc2678c44c89.tar.gz core-89feda6bfdeacb647d44cb432d5ebc2678c44c89.zip |
fdo#55432 fix the context menu position for RTL sheet
Change-Id: I023215646b9aeadb4909c9f90f84f9e8b0dbd173
Reviewed-on: https://gerrit.libreoffice.org/3497
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 145b887eb2ed..1a66c97d8a9c 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -2995,6 +2995,9 @@ void ScGridWindow::Command( const CommandEvent& rCEvt ) else if ( !bMouse ) { // non-edit menu by keyboard -> use lower right of cell cursor position + ScDocument* aDoc = pViewData->GetDocument(); + SCTAB nTabNo = pViewData->GetTabNo(); + sal_Bool bLayoutIsRTL = aDoc->IsLayoutRTL(nTabNo); SCCOL nCurX = pViewData->GetCurX(); SCROW nCurY = pViewData->GetCurY(); @@ -3002,7 +3005,8 @@ void ScGridWindow::Command( const CommandEvent& rCEvt ) long nSizeXPix; long nSizeYPix; pViewData->GetMergeSizePixel( nCurX, nCurY, nSizeXPix, nSizeYPix ); - aMenuPos.X() += nSizeXPix; + // fdo#55432 take the correct position for RTL sheet + aMenuPos.X() += bLayoutIsRTL ? -nSizeXPix : nSizeXPix; aMenuPos.Y() += nSizeYPix; if (pViewData) |