diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-08 13:46:03 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-10 19:49:27 +0100 |
commit | 1cfe06a6ac01d8b16659938be460a1ced78ff870 (patch) | |
tree | 389c03894527974c2676e9b5e08b1a32c3812c7d /sw/source/core/tox/ToxTextGenerator.cxx | |
parent | 12cbb804a5ad8b076dd330bb7e2ea67d4bb1bba1 (diff) |
sw_redlinehide_3: pass current layout through ModelToViewHelper
The expansion of footnotes (and soon text fields) depends on the
layout's mode.
In SwXFlatParagraphIterator, just use whatever is SwDoc's "current"
layout, should be good enough...
Change-Id: Ica3b9eae56b14910c435c0f9c3f8ab6dbcda105f
Diffstat (limited to 'sw/source/core/tox/ToxTextGenerator.cxx')
-rw-r--r-- | sw/source/core/tox/ToxTextGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx index 9ff14b6eedb6..31dab3d5b2fe 100644 --- a/sw/source/core/tox/ToxTextGenerator.cxx +++ b/sw/source/core/tox/ToxTextGenerator.cxx @@ -316,7 +316,7 @@ ToxTextGenerator::HandleTextToken(const SwTOXSortTabBase& source, SwAttrPool& po result.autoFormats.push_back(std::move(clone)); - ModelToViewHelper aConversionMap( *pSrc, ExpandMode::ExpandFields ); + ModelToViewHelper aConversionMap(*pSrc, nullptr, ExpandMode::ExpandFields); result.startPositions.push_back( stripper.GetPositionInStrippedString(aConversionMap.ConvertToViewPosition( hint->GetStart() ))); |