sfx2/source/dialog/tabdlg.cxx | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 2953db9564b76a7aa28fe86aacc641c66f4a3ec0 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Oct 9 09:57:48 2019 +0100 Commit: Caolán McNamara <caol...@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 <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@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(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits