tdf#112126: Correct naming for pages in Draw
Pages are named as 'Page X' rather than 'Slide X' now.
Change-Id: I3d4838ef5dbd8d0c04a068adc12ad9cea0bbb0b1
Reviewed-on: https://gerrit.libreoffice.org/81364
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index 098bd4b..eedeb40 100644
--- a/sd/source/core/sdpage.cxx
+++ b/sd/source/core/sdpage.cxx
@@ -2521,6 +2521,9 @@ const OUString& SdPage::GetName() const
sal_uInt16 nNum = (GetPageNum() + 1) / 2;
aCreatedPageName = SdResId(STR_PAGE) + " ";
if (static_cast<SdDrawDocument&>(getSdrModelFromSdrPage()).GetDocumentType() == DocumentType::Draw )
aCreatedPageName = SdResId(STR_PAGE_NAME) + " ";
if( getSdrModelFromSdrPage().GetPageNumType() == css::style::NumberingType::NUMBER_NONE )
{
// if the document has number none as a formatting