[Libreoffice-commits] core.git: sfx2/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Oct 9 14:32:14 UTC 2019


 sfx2/source/dialog/tabdlg.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 2953db9564b76a7aa28fe86aacc641c66f4a3ec0
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Oct 9 09:57:48 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Oct 9 16:30:36 2019 +0200

    screenshot each page separately
    
    Change-Id: I48a0882162075133597ecdd5512a310f8e0bf0d0
    Reviewed-on: https://gerrit.libreoffice.org/80533
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index aaa688347b1b..8fa63e500ab8 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -1156,6 +1156,15 @@ BitmapEx SfxTabDialogController::createScreenshot() const
 
 OString SfxTabDialogController::GetScreenshotId() const
 {
+    const OString sId = m_xTabCtrl->get_current_page_ident();
+    Data_Impl* pDataObject = Find(m_pImpl->aData, sId);
+    SfxTabPage* pPage = pDataObject ? pDataObject->xTabPage.get() : nullptr;
+    if (pPage)
+    {
+        OString sHelpId(pPage->GetHelpId());
+        if (!sHelpId.isEmpty())
+            return sHelpId;
+    }
     return m_xDialog->get_help_id();
 }
 


More information about the Libreoffice-commits mailing list