[Libreoffice-commits] core.git: sd/source
Muhammet Kara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 23 09:18:12 UTC 2019
sd/source/core/sdpage.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 942d1d2ea59bf4605f2c464a6b29c967fa9f8de8
Author: Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Wed Oct 23 09:50:26 2019 +0300
Commit: Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Wed Oct 23 11:17:08 2019 +0200
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 at collabora.com>
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
More information about the Libreoffice-commits
mailing list