diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-05-04 13:52:49 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-06-08 21:51:23 +0200 |
commit | 4cb1ab1e4f73e02397560c6cafb5da9de1fbd114 (patch) | |
tree | f1151bbe32c69b5de21d0a79c1b8b2851ffc75b5 /sw/source/core/text/guess.cxx | |
parent | 0f4b6de7dfb2bbd561667d8c82bf56c69d5ba665 (diff) |
sw_redlinehide: trivial node conversions in guess.cxx
Change-Id: I112579701af651020dd0dcb7fb465179ce3719fe
Diffstat (limited to 'sw/source/core/text/guess.cxx')
-rw-r--r-- | sw/source/core/text/guess.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/text/guess.cxx b/sw/source/core/text/guess.cxx index 94f36471a190..a629a62c2583 100644 --- a/sw/source/core/text/guess.cxx +++ b/sw/source/core/text/guess.cxx @@ -32,6 +32,7 @@ #include <unotools/charclass.hxx> #include "porfld.hxx" #include <paratr.hxx> +#include <doc.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -73,7 +74,7 @@ bool SwTextGuess::Guess( const SwTextPortion& rPor, SwTextFormatInfo &rInf, SwTwips nLineWidth = rInf.GetLineWidth(); TextFrameIndex nMaxLen = TextFrameIndex(rInf.GetText().getLength()) - rInf.GetIdx(); - const SvxAdjust& rAdjust = rInf.GetTextFrame()->GetTextNode()->GetSwAttrSet().GetAdjust().GetAdjust(); + const SvxAdjust& rAdjust = rInf.GetTextFrame()->GetTextNodeForParaProps()->GetSwAttrSet().GetAdjust().GetAdjust(); // tdf#104668 space chars at the end should be cut if the compatibility option is enabled // for LTR mode only @@ -143,8 +144,8 @@ bool SwTextGuess::Guess( const SwTextPortion& rPor, SwTextFormatInfo &rInf, nLineWidth -= nLeftRightBorderSpace; - const bool bUnbreakableNumberings = rInf.GetTextFrame()->GetTextNode()-> - getIDocumentSettingAccess()->get(DocumentSettingId::UNBREAKABLE_NUMBERINGS); + const bool bUnbreakableNumberings = rInf.GetTextFrame()->GetDoc() + .getIDocumentSettingAccess().get(DocumentSettingId::UNBREAKABLE_NUMBERINGS); // first check if everything fits to line if ( ( long ( nLineWidth ) * 2 > sal_Int32(nMaxLen) * nPorHeight ) || |