summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2016-02-06 00:03:46 +0800
committerMark Hung <marklh9@gmail.com>2016-02-13 08:04:40 +0000
commit3596613153289dae204b5abdc7446b303021f597 (patch)
tree066cf6e54257a49bb2e54efe4cce19afa077799a /sw
parentf2df80410b34faa88740f2c0c2b021c74a19d5ca (diff)
tdf#96392 disallow hanging punctuation if the frame is inside a table.
Change-Id: Ib9d8386b47f8fa7b8afabb94f94085c7fb2fc0bb Reviewed-on: https://gerrit.libreoffice.org/22158 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/guess.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/text/guess.cxx b/sw/source/core/text/guess.cxx
index f401fcbb489b..577506e71322 100644
--- a/sw/source/core/text/guess.cxx
+++ b/sw/source/core/text/guess.cxx
@@ -347,6 +347,7 @@ bool SwTextGuess::Guess( const SwTextPortion& rPor, SwTextFormatInfo &rInf,
*rInf.GetTextFrame()->GetNode()->getIDocumentSettingAccess()->getForbiddenCharacters( aLang, true ) );
const bool bAllowHanging = rInf.IsHanging() && ! rInf.IsMulti() &&
+ ! rInf.GetTextFrame()->IsInTab() &&
! rPor.InFieldGrp();
LineBreakUserOptions aUserOpt(