Kaydet (Commit) 853f119c authored tarafından Eike Rathke's avatar Eike Rathke

document's visible tab may be out of sync

Change-Id: If94504f08cca6dcab009142cc18799bafecb3ece
üst 0005d50f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment