summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa>2013-03-17 09:39:50 +0300
committerLior Kaplan <kaplanlior@gmail.com>2013-03-18 14:34:58 +0200
commitf6001794c67d76cb8efc7151263ae847c9137feb (patch)
tree9518159523e54f32961867f0ddea26d4db255c38
parent86a73eb47ea7239182dafaf827ad43e3b09dc20e (diff)
Fix fdo#62399 Border incorrect for RTL
this patch will fix the incorrect border when you use the cell format dialog. Change-Id: Ieeeae4060a15e96e0de0f335f3c460df86f7dbf9 Reviewed-on: https://gerrit.libreoffice.org/2781 Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa> Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa> (cherry picked from commit 02c04319376e2124336a864aaf8b7de3c824c2f4)
-rw-r--r--sc/source/ui/view/tabvwsha.cxx19
1 files changed, 18 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx
index 45e9f026cbac..543c70c5fd78 100644
--- a/sc/source/ui/view/tabvwsha.cxx
+++ b/sc/source/ui/view/tabvwsha.cxx
@@ -482,7 +482,24 @@ void ScTabViewShell::ExecuteCellFormatDlg( SfxRequest& rReq, sal_uInt16 nTabPage
// Umrandungs-Items holen und in den Set packen:
GetSelectionFrame( aLineOuter, aLineInner );
- pOldSet->Put( aLineOuter );
+ //Fix border incorrect for RTL fdo#62399
+ if( pDoc->IsLayoutRTL( GetViewData()->GetTabNo() ) )
+ {
+ SvxBoxItem aNewFrame( aLineOuter );
+ if ( aLineInner.IsValid(VALID_LEFT) )
+ aNewFrame.SetLine( aLineOuter.GetLeft(), BOX_LINE_RIGHT );
+ if ( aLineInner.IsValid(VALID_RIGHT) )
+ aNewFrame.SetLine( aLineOuter.GetRight(), BOX_LINE_LEFT );
+ if ( aLineInner.IsValid(VALID_TOP) )
+ aNewFrame.SetLine( aLineOuter.GetTop(), BOX_LINE_TOP );
+ if ( aLineInner.IsValid(VALID_BOTTOM) )
+ aNewFrame.SetLine( aLineOuter.GetBottom() , BOX_LINE_BOTTOM );
+
+ pOldSet->Put( aNewFrame );
+ }
+ else
+ pOldSet->Put( aLineOuter );
+
pOldSet->Put( aLineInner );
// NumberFormat Value aus Value und Language erzeugen und eintueten