Kaydet (Commit) 02c04319 authored tarafından Faisal M. Al-Otaibi's avatar Faisal M. Al-Otaibi Kaydeden (comit) Ahmad Harthi

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/2781Reviewed-by: 's avatarAhmad Harthi <aalharthi@kacst.edu.sa>
Tested-by: 's avatarAhmad Harthi <aalharthi@kacst.edu.sa>
üst 52e56c3c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment