diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-07-05 18:28:41 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-05 21:41:20 +0200 |
commit | b7179e78ede390bd87425e828beeabb2a8be93a3 (patch) | |
tree | 04bd8e71bb0f32732484285c770de85f63eba00a /editeng | |
parent | d5bd0ff8450985d0adadfdb13b4d97249b1b4bf4 (diff) |
ConvertBorderWidthToWord: fix wrong INSET/OUSET conversion:
This should do the inverse of ConvertBorderWidthFromWord.
Change-Id: If0b2a8a83a7faa6600a07ecfcb13a124d7cdeab6
(cherry picked from commit 927f1e56d57ef9238a4574699ae36626b3daaf22)
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/borderline.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/items/borderline.cxx b/editeng/source/items/borderline.cxx index f6e184fd1814..9f538c2a5bd4 100644 --- a/editeng/source/items/borderline.cxx +++ b/editeng/source/items/borderline.cxx @@ -227,11 +227,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: |