diff options
Diffstat (limited to 'sd/source/ui/view/sdview2.cxx')
-rw-r--r-- | sd/source/ui/view/sdview2.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx index ba1b2cc226d7..950a2422c599 100644 --- a/sd/source/ui/view/sdview2.cxx +++ b/sd/source/ui/view/sdview2.cxx @@ -289,9 +289,7 @@ void View::DoPaste (::sd::Window* pWindow) // remove all hard linebreaks from the title if (pOutliner->GetParagraphCount() > 1) { - bool bOldUpdateMode = pOutliner->GetUpdateMode(); - - pOutliner->SetUpdateMode( false ); + bool bOldUpdateMode = pOutliner->SetUpdateLayout( false ); const EditEngine& rEdit = pOutliner->GetEditEngine(); const sal_Int32 nParaCount = rEdit.GetParagraphCount(); @@ -304,7 +302,7 @@ void View::DoPaste (::sd::Window* pWindow) } DBG_ASSERT( rEdit.GetParagraphCount() <= 1, "Titleobject contains hard line breaks" ); - pOutliner->SetUpdateMode(bOldUpdateMode); + pOutliner->SetUpdateLayout(bOldUpdateMode); } } |