summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-03-14 19:03:09 +0100
committerMichael Stahl <mstahl@redhat.com>2014-03-14 19:15:57 +0100
commit84f4de3b65cd0f861e80c69b773004f28f9f8d9f (patch)
tree6bd1ca36368ca49323ccd71233bd2b9ab3f514a4 /editeng
parentcc847b5885f89e9292ba6aec1298f3261a966c66 (diff)
fdo#68779: RTF import: set borders without explicit width
Word reportedly uses 0.75pt as a default if \brdrw is missing. Change-Id: I263c56f756c65ff6bb30870aa70806564d5826a6
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/borderline.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/editeng/source/items/borderline.cxx b/editeng/source/items/borderline.cxx
index b919e58b5aab..d3eef130e64c 100644
--- a/editeng/source/items/borderline.cxx
+++ b/editeng/source/items/borderline.cxx
@@ -177,9 +177,11 @@ static const double OUTSET_line1 = 15.0;
static const double INSET_line2 = 15.0;
double
-ConvertBorderWidthFromWord(SvxBorderStyle const eStyle, double const fWidth,
+ConvertBorderWidthFromWord(SvxBorderStyle const eStyle, double const i_fWidth,
int const nWordLineStyle)
{
+ // fdo#68779: at least for RTF, 0.75pt is the default if width is missing
+ double const fWidth((i_fWidth == 0.0) ? 15.0 : i_fWidth);
switch (eStyle)
{
// Single lines