summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/flddok.cxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-11-07 16:14:19 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-15 15:10:06 +0100
commit43a7231c96b5d132e8cc349553ff6efaba9d5ed0 (patch)
tree0c276f06148863cc9a0d894e287bb2ab65802fd0 /sw/source/ui/fldui/flddok.cxx
parenta25e7ac89e456f57f2b9701b04b7a4733aaf6f57 (diff)
sw_redlinehide_3: add second result to SwChapterField
Now it can store both the result for Show as well as for Hide mode. Change-Id: I15a14b76a96ef77683cd63039b1a8f5e1e94e4c9
Diffstat (limited to 'sw/source/ui/fldui/flddok.cxx')
-rw-r--r--sw/source/ui/fldui/flddok.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx
index 66a6684f8341..3b756a692136 100644
--- a/sw/source/ui/fldui/flddok.cxx
+++ b/sw/source/ui/fldui/flddok.cxx
@@ -385,7 +385,7 @@ IMPL_LINK_NOARG(SwFieldDokPage, TypeHdl, ListBox&, void)
case TYP_CHAPTERFLD:
m_pValueFT->SetText(SwResId(STR_LEVEL));
if (IsFieldEdit())
- m_pLevelED->SetText(OUString::number(static_cast<SwChapterField*>(GetCurField())->GetLevel() + 1));
+ m_pLevelED->SetText(OUString::number(static_cast<SwChapterField*>(GetCurField())->GetLevel(GetWrtShell()->GetLayout()) + 1));
bLevel = true;
break;