sc/source/ui/view/preview.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 87ef2d8f2808a951c92387ba0582ea02a19f89e7 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Fri Aug 5 02:56:30 2016 +0200 workaround missing SetSelectedSheet call for print preview, tdf#99333 Change-Id: If986b156397e15d2f1faa52b7d52b1ce0b37d213 Reviewed-on: https://gerrit.libreoffice.org/27889 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx index a8dc240..a629d0a 100644 --- a/sc/source/ui/view/preview.cxx +++ b/sc/source/ui/view/preview.cxx @@ -224,6 +224,12 @@ void ScPreview::CalcPages() ScDocument& rDoc = pDocShell->GetDocument(); nTabCount = rDoc.GetTableCount(); + if (maSelectedTabs.empty()) + { + SCTAB nCurrentTab = ScDocShell::GetCurTab(); + maSelectedTabs.insert(nCurrentTab); + } + SCTAB nStart = nTabsTested; if (!bValid) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits