summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorFaisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa>2013-04-01 09:39:36 +0300
committerAhmad Harthi <aalharthi@kacst.edu.sa>2013-04-01 07:45:19 +0000
commit9b6b7e82a831b08617a767ff934040976c570994 (patch)
tree84f6c740b5b2a87a634a7bd74d4fb254ec5d8ef8 /sc
parentbb681a1cbb5a8382a7d521d901bc101496085519 (diff)
more fix for fdo#62399
this will fix the border position, when the borders from the same side are different in cells format dialog, when the sheet RTL. Change-Id: I9fa8a665dfa0b0dcb5230bafa1e3537f450afb9c Reviewed-on: https://gerrit.libreoffice.org/3145 Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa> Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/tabvwsha.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx
index 43a04a41bfea..20b3d39a3e94 100644
--- a/sc/source/ui/view/tabvwsha.cxx
+++ b/sc/source/ui/view/tabvwsha.cxx
@@ -485,15 +485,16 @@ void ScTabViewShell::ExecuteCellFormatDlg( SfxRequest& rReq, sal_uInt16 nTabPage
//Fix border incorrect for RTL fdo#62399
if( pDoc->IsLayoutRTL( GetViewData()->GetTabNo() ) )
{
- SvxBoxItem aNewFrame( aLineOuter );
+ SvxBoxItem aNewFrame( aLineOuter );
+ SvxBoxInfoItem aTempInfo( aLineInner );
+
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 );
+
+ aLineInner.SetValid( VALID_LEFT, aTempInfo.IsValid(VALID_RIGHT));
+ aLineInner.SetValid( VALID_RIGHT, aTempInfo.IsValid(VALID_LEFT));
pOldSet->Put( aNewFrame );
}