ConvertBorderWidthToWord: fix wrong INSET/OUSET conversion:
This should do the inverse of ConvertBorderWidthFromWord. Change-Id: If0b2a8a83a7faa6600a07ecfcb13a124d7cdeab6
This commit is contained in:
parent
757a346159
commit
927f1e56d5
1 changed files with 2 additions and 2 deletions
|
@ -224,11 +224,11 @@ ConvertBorderWidthToWord(SvxBorderStyle const eStyle, double const fWidth)
|
|||
break;
|
||||
|
||||
case OUTSET:
|
||||
return (fWidth / 2.0) - OUTSET_line1;
|
||||
return (fWidth - OUTSET_line1) / 2.0;
|
||||
break;
|
||||
|
||||
case INSET:
|
||||
return (fWidth / 2.0) - INSET_line2;
|
||||
return (fWidth - INSET_line2) / 2.0;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue