Kaydet (Commit) cb55e37c authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide_3: expand layout-dependent in SwChapterField/SwGetRefField

Change-Id: I3b68a46f68fb4070d26b247a6701b510cc209d9b
üst e6d76a2e
......@@ -95,9 +95,9 @@ const OUString& SwChapterField::GetTitle(SwRootFrame const*const pLayout) const
return rState.sTitle;
}
OUString SwChapterField::ExpandImpl(SwRootFrame const*const) const
OUString SwChapterField::ExpandImpl(SwRootFrame const*const pLayout) const
{
State const& rState(m_State);
State const& rState(pLayout && pLayout->IsHideRedlines() ? m_StateRLHidden : m_State);
switch( GetFormat() )
{
case CF_TITLE:
......
......@@ -416,9 +416,9 @@ void SwGetRefField::SetExpand( const OUString& rStr )
m_sTextRLHidden = rStr;
}
OUString SwGetRefField::ExpandImpl(SwRootFrame const*const) const
OUString SwGetRefField::ExpandImpl(SwRootFrame const*const pLayout) const
{
return m_sText;
return pLayout && pLayout->IsHideRedlines() ? m_sTextRLHidden : m_sText;
}
OUString SwGetRefField::GetFieldName() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment