diff options
Diffstat (limited to 'sw/source/uibase/wrtsh/wrtsh3.cxx')
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh3.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh3.cxx b/sw/source/uibase/wrtsh/wrtsh3.cxx index f01946e45d17..e4b594770282 100644 --- a/sw/source/uibase/wrtsh/wrtsh3.cxx +++ b/sw/source/uibase/wrtsh/wrtsh3.cxx @@ -190,9 +190,12 @@ bool SwWrtShell::GotoContentControl(const SwFormatContentControl& rContentContro aRewriter.AddRule(UndoArg3, SwResId(STR_START_QUOTE) + aNewState + SwResId(STR_END_QUOTE)); GetIDocumentUndoRedo().StartUndo(SwUndoId::REPLACE, &aRewriter); + // Write the doc model. + pContentControl->SetCurrentDateValue(*pContentControl->GetSelectedDate()); + pContentControl->SetSelectedDate(std::nullopt); + // Update the content. DelLeft(); - pContentControl->SetSelectedDate(std::nullopt); Insert(aNewState); GetIDocumentUndoRedo().EndUndo(SwUndoId::REPLACE, &aRewriter); |