[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Mon Aug 8 04:05:40 UTC 2016
sc/source/ui/view/preview.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 87ef2d8f2808a951c92387ba0582ea02a19f89e7
Author: Markus Mohrhard <markus.mohrhard at 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 <ci at libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard at 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)
{
More information about the Libreoffice-commits
mailing list