summaryrefslogtreecommitdiff
path: root/sw/source/core/text/portxt.cxx
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2019-08-12 16:44:28 +0200
committerLászló Németh <nemeth@numbertext.org>2019-08-24 11:39:26 +0200
commit9ee96273a2090b63e0f579a1e9c9cef780756e6d (patch)
treec3f7b5da9b8d1c3e02fbcaca1937ec6b5027bced /sw/source/core/text/portxt.cxx
parent24b04db5a63b57a74e58a7616091437ad68548ac (diff)
tdf#123703 strip six-em-space (U+2006) at line break
as normal (' ') and ideographic (U+3000) spaces to get the same layout in justified paragraphs, too, with the previous RTF import fix. Note: this can be useful for manual kerning fixes during editing, too. Change-Id: I7c031b7d79a8703e4821da91fc60a752a1d15788 Reviewed-on: https://gerrit.libreoffice.org/77367 Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source/core/text/portxt.cxx')
-rw-r--r--sw/source/core/text/portxt.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/text/portxt.cxx b/sw/source/core/text/portxt.cxx
index d5f51c7e054a..f9aed8c08c6c 100644
--- a/sw/source/core/text/portxt.cxx
+++ b/sw/source/core/text/portxt.cxx
@@ -379,7 +379,8 @@ bool SwTextPortion::Format_( SwTextFormatInfo &rInf )
rInf.GetLineStart() + rInf.GetLast()->GetLen() < rInf.GetIdx() &&
aGuess.BreakPos() == rInf.GetIdx() &&
CH_BLANK != rInf.GetChar( rInf.GetIdx() ) &&
- 0x3000 != rInf.GetChar( rInf.GetIdx() ) ) )
+ CH_FULL_BLANK != rInf.GetChar( rInf.GetIdx() ) &&
+ CH_SIX_PER_EM != rInf.GetChar( rInf.GetIdx() ) ) )
BreakUnderflow( rInf );
// case B2
else if( rInf.GetIdx() > rInf.GetLineStart() ||