summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdulaziz A Alayed <aalayed@kacst.edu.sa>2014-06-04 12:04:55 +0300
committerAbdulaziz A Alayed <aalayed@kacst.edu.sa>2014-06-04 13:04:57 +0300
commitc6019d89314be0ff85acf29ae9115c153cf31562 (patch)
treec44e1f9f0e167e1315a86437befd00d8ffe84392
parentcc25f70ef1e9fa7637b4bfd332ebdc33844a41c2 (diff)
fdo#79243 UI:fix preview in imageCorp tap in writer
Change-Id: If13cabc21d804c9383b26f7ee5a40800cacc76a5
-rw-r--r--cui/source/tabpages/grfpage.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx
index 252d7e744b9c..ad4804528ae6 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