diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-08-28 23:32:38 +0200 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-08-30 21:37:19 +0200 |
commit | 80f391814fb76c529a0de9431dbc1c54b6a2a08b (patch) | |
tree | f34a035173fc4c57657aae502e1c58b5344fac32 /sc/source | |
parent | 3edb69a7ff5029785110b084fa409b684bf17415 (diff) |
TEMPORARY: don't predraw for calc.
Since we don't have ViewData (yet), the scaling in OutputData is wrong,
making this output ugly. This only seems to affect what appeasrs on screen
directly after startup, and there appears to be no negative effect from
this, so maybe we can jus tkill this pre-painting?
Change-Id: Ie4178ed39263e07fa11a139b20811799b7253601
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index ea1409111256..1a59cb4c1cdb 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1865,21 +1865,21 @@ void ScDocShell::Draw( OutputDevice* pDev, const JobSetup & /* rSetup */, sal_uI if ( nAspect == ASPECT_THUMBNAIL ) { - Rectangle aBoundRect = GetVisArea( ASPECT_THUMBNAIL ); - ScViewData aTmpData( this, NULL ); - aTmpData.SetTabNo(nVisTab); - SnapVisArea( aBoundRect ); - aTmpData.SetScreen( aBoundRect ); - ScPrintFunc::DrawToDev( &aDocument, pDev, 1.0, aBoundRect, &aTmpData, true ); +// Rectangle aBoundRect = GetVisArea( ASPECT_THUMBNAIL ); +// ScViewData aTmpData( this, NULL ); +// aTmpData.SetTabNo(nVisTab); +// SnapVisArea( aBoundRect ); +// aTmpData.SetScreen( aBoundRect ); +// // ScPrintFunc::DrawToDev( &aDocument, pDev, 1.0, aBoundRect, &aTmpData, true ); } else { - Rectangle aBoundRect = SfxObjectShell::GetVisArea(); - ScViewData aTmpData( this, NULL ); - aTmpData.SetTabNo(nVisTab); - SnapVisArea( aBoundRect ); - aTmpData.SetScreen( aBoundRect ); - ScPrintFunc::DrawToDev( &aDocument, pDev, 1.0, aBoundRect, &aTmpData, true ); + // Rectangle aBoundRect = SfxObjectShell::GetVisArea(); + // ScViewData aTmpData( this, NULL ); + // aTmpData.SetTabNo(nVisTab); + // SnapVisArea( aBoundRect ); + // aTmpData.SetScreen( aBoundRect ); + // ScPrintFunc::DrawToDev( &aDocument, pDev, 1.0, aBoundRect, &aTmpData, true ); } pDev->SetLayoutMode( nOldLayoutMode ); |