sc/source/ui/docshell/docsh4.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
New commits: commit 853f119c479f6bb2b8cdf4dbe49542f362a0cbb9 Author: Eike Rathke <er...@redhat.com> Date: Wed May 6 15:11:41 2015 +0200 document's visible tab may be out of sync Change-Id: If94504f08cca6dcab009142cc18799bafecb3ece diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 994c51f..a379f6f 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1898,7 +1898,13 @@ Rectangle ScDocShell::GetVisArea( sal_uInt16 nAspect ) const if( nAspect == ASPECT_THUMBNAIL ) { - Size aSize = aDocument.GetPageSize(aDocument.GetVisibleTab()); + SCTAB nVisTab = aDocument.GetVisibleTab(); + if (!aDocument.HasTable(nVisTab)) + { + nVisTab = 0; + const_cast<ScDocShell*>(this)->aDocument.SetVisibleTab(nVisTab); + } + Size aSize = aDocument.GetPageSize(nVisTab); const long SC_PREVIEW_SIZE_X = 10000; const long SC_PREVIEW_SIZE_Y = 12400; Rectangle aArea( 0,0, SC_PREVIEW_SIZE_X, SC_PREVIEW_SIZE_Y); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits