summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-18 17:20:34 +0000
committerMaxim Monastirsky <momonasmon@gmail.com>2016-02-18 19:28:11 +0000
commitf1ee822b76cf58c93299e901224d6d6a7eae322a (patch)
tree0a3d9200e88864b4dc636244ac544aa930f3c0d6
parentadc69d7fe391154fcebf9c97b857c6ddccec4539 (diff)
gtk3: Resolves: tdf#96333 fix RTL menu positioning
Change-Id: I22c5186371e558ed84da81c43400379c218ca816 (cherry picked from commit d7a292ce490eeb8ff02e145e0a55f41f4c179541) Reviewed-on: https://gerrit.libreoffice.org/22487 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 3914de59148f..690225665d32 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -1613,7 +1613,7 @@ void GtkSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, sal_u
if( m_pParent )
{
if( AllSettings::GetLayoutRTL() )
- nX = m_pParent->maGeometry.nWidth-maGeometry.nWidth-1-nX;
+ nX = m_pParent->maGeometry.nWidth-m_nWidthRequest-1-nX;
nX += m_pParent->maGeometry.nX;
nY += m_pParent->maGeometry.nY;
}