summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-02-20 11:27:32 -0500
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-02-20 23:56:23 +0000
commitd6d06b230bf923492c4a6ff42781cca25a28ef25 (patch)
tree171f16b121e73adeb825767de74865e6a0469aaa
parent1639e174ebb3945f4fda08c30f535f98d3e54d7e (diff)
fdo#75130: Export cell borders to xls and xlsx correctly.
Change-Id: Ic629fb4852d2ada9724dfee7618e2436c0fa28a8 (cherry picked from commit 1c1f42fdbad774cae7c45a7f8d60b9af766dee0a) Reviewed-on: https://gerrit.libreoffice.org/8147 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/filter/excel/xestyle.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 59603ebb9a93..f3ce557c42b7 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -1570,18 +1570,18 @@ void lclGetBorderLine(
switch (pLine->GetBorderLineStyle())
{
case table::BorderLineStyle::DASHED:
+ case table::BorderLineStyle::FINE_DASHED:
rnXclLine = EXC_LINE_DASHED;
break;
case table::BorderLineStyle::DOTTED:
rnXclLine = EXC_LINE_DOTTED;
break;
- case table::BorderLineStyle::FINE_DASHED:
- rnXclLine = EXC_LINE_HAIR;
- break;
default:
break;
}
}
+ else if (nOuterWidth >= EXC_BORDER_HAIR)
+ rnXclLine = EXC_LINE_HAIR;
else
rnXclLine = EXC_LINE_NONE;
}
@@ -1726,7 +1726,7 @@ static const char* ToLineStyle( sal_uInt8 nLineStyle )
case EXC_LINE_HAIR: return "hair";
case EXC_LINE_DOTTED: return "dotted";
case EXC_LINE_DASHED: return "dashed";
- case EXC_LINE_MEDIUMDASHED: return "mediumdashed";
+ case EXC_LINE_MEDIUMDASHED: return "mediumDashed";
}
return "*unknown*";
}