summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-03-14 19:03:09 +0100
committerAndras Timar <andras.timar@collabora.com>2014-04-08 14:43:47 +0200
commit17e2974ee959d0daf9fad1688a8b3a0e8e20b7a8 (patch)
tree7edecebaa0853094f92c3591418858e7bb148038
parent11420a4c49049ab5080e2ebed85d39cffbba9477 (diff)
fdo#68779: RTF import: set borders without explicit width
Word reportedly uses 0.75pt as a default if \brdrw is missing. (cherry picked from commit 84f4de3b65cd0f861e80c69b773004f28f9f8d9f) Conflicts: sw/qa/extras/rtfimport/rtfimport.cxx Change-Id: I263c56f756c65ff6bb30870aa70806564d5826a6 Reviewed-on: https://gerrit.libreoffice.org/8595 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-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 53d98459c911..9dd1d2c94694 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