diff options
Diffstat (limited to 'sd/source/ui/view/viewshe3.cxx')
-rw-r--r-- | sd/source/ui/view/viewshe3.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx index 4ffa985b0ed5..cad902ed86db 100644 --- a/sd/source/ui/view/viewshe3.cxx +++ b/sd/source/ui/view/viewshe3.cxx @@ -278,9 +278,13 @@ SdPage* ViewShell::CreateOrDuplicatePage ( // 2. Create a new page or duplicate an existing one. View* pDrView = GetView(); const bool bUndo = pDrView && pDrView->IsUndoEnabled(); - if( bUndo ) + if( bUndo && GetDoc()->GetDocumentType() == DocumentType::Draw) + pDrView->BegUndo(SdResId(STR_INSERT_PAGE_DRAW)); + else if (bUndo) pDrView->BegUndo(SdResId(STR_INSERTPAGE)); + + sal_uInt16 nNewPageIndex = 0xffff; switch (nSId) { |