[Libreoffice-commits] core.git: cui/source

Abdulaziz A Alayed aalayed at kacst.edu.sa
Wed Jun 4 03:07:26 PDT 2014


 cui/source/tabpages/grfpage.cxx |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

New commits:
commit c6019d89314be0ff85acf29ae9115c153cf31562
Author: Abdulaziz A Alayed <aalayed at kacst.edu.sa>
Date:   Wed Jun 4 12:04:55 2014 +0300

    fdo#79243 UI:fix preview in imageCorp tap in writer
    
    Change-Id: If13cabc21d804c9383b26f7ee5a40800cacc76a5

diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx
index 252d7e7..ad48045 100644
--- a/cui/source/tabpages/grfpage.cxx
+++ b/cui/source/tabpages/grfpage.cxx
@@ -491,8 +491,16 @@ IMPL_LINK( SvxGrfCropPage, CropHdl, const MetricField *, pField )
                 m_pRightMF->SetValue( m_pRightMF->Normalize( nRight ), eUnit );
             }
         }
-        m_pExampleWN->SetLeft(nLeft);
-        m_pExampleWN->SetRight(nRight);
+        if (Application::GetSettings().GetLayoutRTL())
+        {
+            m_pExampleWN->SetLeft(nRight);
+            m_pExampleWN->SetRight(nLeft);
+        }
+        else
+        {
+            m_pExampleWN->SetLeft(nLeft);
+            m_pExampleWN->SetRight(nRight);
+        }
         if(bZoom)
         {
             // scale stays, recompute width


More information about the Libreoffice-commits mailing list