[Libreoffice-commits] core.git: sc/source
Faisal M. Al-Otaibi
fmalotaibi at kacst.edu.sa
Mon Apr 1 00:45:40 PDT 2013
sc/source/ui/view/tabvwsha.cxx | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
New commits:
commit 9b6b7e82a831b08617a767ff934040976c570994
Author: Faisal M. Al-Otaibi <fmalotaibi at kacst.edu.sa>
Date: Mon Apr 1 09:39:36 2013 +0300
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 at kacst.edu.sa>
Tested-by: Ahmad Harthi <aalharthi at kacst.edu.sa>
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx
index 43a04a4..20b3d39 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 );
}
More information about the Libreoffice-commits
mailing list