[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - vcl/unx

Caolán McNamara caolanm at redhat.com
Thu Feb 18 19:28:40 UTC 2016


 vcl/unx/gtk3/gtk3gtkframe.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f1ee822b76cf58c93299e901224d6d6a7eae322a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Feb 18 17:20:34 2016 +0000

    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 at gmail.com>
    Tested-by: Maxim Monastirsky <momonasmon at gmail.com>

diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 3914de5..6902256 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;
         }


More information about the Libreoffice-commits mailing list