summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwsha.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/tabvwsha.cxx')
-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