summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@collabora.com>2019-10-23 09:50:26 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2019-10-23 11:17:08 +0200
commit942d1d2ea59bf4605f2c464a6b29c967fa9f8de8 (patch)
tree10402a4a60e876dd68788fdaa4f98339d29c1d9b /sd
parentb20fa45bf92d780c56128c574203d01dc095ef95 (diff)
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>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/sdpage.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index 098bd4b821ae..eedeb4056d44 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