diff options
author | Justin Luth <justin_luth@sil.org> | 2016-11-14 09:38:25 +0300 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2016-11-15 05:42:20 +0000 |
commit | 8fc6be8d2c0fd455b9c461143594457a08a3e250 (patch) | |
tree | 12e7b970cc6f31c011d6f667cfc30c85a8e51738 /svtools | |
parent | 015061495373d7c09362b175dc1f6be3f2a37a1a (diff) |
tdf#88827 - double-thin border: MINGAPWIDTH is a valid width
double-thin borders are available in the UI starting from 0.5pt.
The actual minumum (as seen in a round-trip), is 1.10pt.
(Each thin line is ~ .50pt, the gap is ~ .05pt, and then some
approximations and rounding show it as 1.10 - at least that is how I
understood it). 1.15pt is the first point at which the gap is larger
than the minimum - and double_thins with a minimum gap were considered
invalid, and thus were not imported.
With this fix, double-thin borders created with a size less than 1.15pt
are valid and visible on import.
cherry-picked from master, commit 9259fcd40b1749cd421c433bcc436cb335cbbe43
Conflicts:
sc/qa/unit/subsequent_export-test.cxx
Change-Id: Ia8cff677516eca371b7e8a9ef7ba33a1b8f176bf
Reviewed-on: https://gerrit.libreoffice.org/30856
Reviewed-by: Justin Luth <justin_luth@sil.org>
Tested-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 20fdb89c9eaf..3b17faa6546d 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -401,7 +401,7 @@ long BorderWidthImpl::GuessWidth( long nLine1, long nLine2, long nGap ) bool bGapChange = bool( m_nFlags & BorderWidthImplFlags::CHANGE_DIST ); double nWidthGap = lcl_getGuessedWidth( nGap, m_nRateGap, bGapChange ); - if ( bGapChange && nGap > MINGAPWIDTH ) + if ( bGapChange && nGap >= MINGAPWIDTH ) aToCompare.push_back( nWidthGap ); else if ( !bGapChange && nWidthGap < 0 ) bInvalid = true; |