summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2018-09-27 08:13:06 +0300
committerJustin Luth <justin_luth@sil.org>2018-09-28 05:55:59 +0200
commitb430722da7dc2ddbbc1ae2e2a86d415e6fd8baba (patch)
treeefecc509dd534a3f72362222d208f41c3e5628f1
parentfe847dda1751bc2c96ef646baa4f16bcc431c1e3 (diff)
sw: increase horizontal line parastyle default borderwidth
RES_POOLCOLL_HTML_HR had the absolute minimum width of 1 (0.05pt). Dividing by 3 in the "convert to word size" formula returned zero. It looks like import or export must increase the size to 3 because round-tripping in ODT format loads in a larger value that works when resaving as .doc. cui/source/tabpages/border.cxx sets the default for a double style border to 10, but the minimal value of 3 will be better since it matches the ODT round-tripped value (and looks more like a single line which people probably expect from the horizontal line). Change-Id: I32a90f2add3fe746359cd9cece14762ccc2a58c1 Reviewed-on: https://gerrit.libreoffice.org/61022 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org>
-rw-r--r--sw/source/core/doc/DocumentStylePoolManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/DocumentStylePoolManager.cxx b/sw/source/core/doc/DocumentStylePoolManager.cxx
index d397be625b26..1b7798db28fd 100644
--- a/sw/source/core/doc/DocumentStylePoolManager.cxx
+++ b/sw/source/core/doc/DocumentStylePoolManager.cxx
@@ -1336,7 +1336,7 @@ SwTextFormatColl* DocumentStylePoolManager::GetTextCollFromPool( sal_uInt16 nId,
{
SvxBoxItem aBox( RES_BOX );
Color aColor( COL_GRAY );
- SvxBorderLine aNew(&aColor, 1, SvxBorderLineStyle::DOUBLE);
+ SvxBorderLine aNew(&aColor, 3, SvxBorderLineStyle::DOUBLE);
aBox.SetLine( &aNew, SvxBoxItemLine::BOTTOM );
aSet.Put( aBox );