summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/edtwin2.cxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-11-08 14:42:11 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-15 15:10:06 +0100
commite74d5ccd542c64487b97edff035f723a2082ec3b (patch)
tree8dee9ff883d434e43f6695fb0c0b444d1f9977be /sw/source/uibase/docvw/edtwin2.cxx
parent22fd34b10a8e978b881959ee508757da19eeedac (diff)
sw_redlinehide_3: pass layout into SwTextNode::GetExpandText()
Thanks to [loplugin:nullptr] and [loplugin:implicitboolconversion] for finding one of the call sites; 3 current C++ compilers would otherwise have implicitly converted the parameters into nonsense without warning. Change-Id: I3cf6697b37616570fd56fd32da27752983a66f4a
Diffstat (limited to 'sw/source/uibase/docvw/edtwin2.cxx')
-rw-r--r--sw/source/uibase/docvw/edtwin2.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx
index e4258ed60f50..e1b8afaef0df 100644
--- a/sw/source/uibase/docvw/edtwin2.cxx
+++ b/sw/source/uibase/docvw/edtwin2.cxx
@@ -61,6 +61,7 @@
#include <fmtfld.hxx>
#include <IDocumentMarkAccess.hxx>
+#include <txtfrm.hxx>
#include <ndtxt.hxx>
static OUString lcl_GetRedlineHelp( const SwRangeRedline& rRedl, bool bBalloon )
@@ -198,7 +199,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt)
SwTextNode* pTextNode = ppBkmk->get()->GetMarkStart().nNode.GetNode().GetTextNode();
if ( pTextNode )
{
- sText = pTextNode->GetExpandText( 0, pTextNode->Len(), true, true );
+ sText = sw::GetExpandTextMerged(rSh.GetLayout(), *pTextNode, true, false, ExpandMode(0));
if( !sText.isEmpty() )
{