summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/view/gridwin3.cxx24
1 files changed, 10 insertions, 14 deletions
diff --git a/sc/source/ui/view/gridwin3.cxx b/sc/source/ui/view/gridwin3.cxx
index e9ac6ca2054a..568ed9639a63 100644
--- a/sc/source/ui/view/gridwin3.cxx
+++ b/sc/source/ui/view/gridwin3.cxx
@@ -249,20 +249,16 @@ MapMode ScGridWindow::GetDrawMapMode( bool bForce )
{
Fraction aScaleX;
Fraction aScaleY;
- if (pDrView)
- pDrView->GetScale( aScaleX, aScaleY );
- else
- {
- SCCOL nEndCol = 0;
- SCROW nEndRow = 0;
- pDoc->GetTableArea( nTab, nEndCol, nEndRow );
- if (nEndCol<20) nEndCol = 20;
- if (nEndRow<20) nEndRow = 1000;
- ScDrawUtil::CalcScale( pDoc, nTab, 0,0, nEndCol,nEndRow, this,
- pViewData->GetZoomX(),pViewData->GetZoomY(),
- pViewData->GetPPTX(),pViewData->GetPPTY(),
- aScaleX,aScaleY );
- }
+ // if (pDrView)
+ // {
+ // pDrView->GetScale( aScaleX, aScaleY );
+ // }
+ // else
+ // {
+ const MapMode& aPaintMapMode = pViewData->GetPaintMapMode();
+ aScaleX = aPaintMapMode.GetScaleX();
+ aScaleY = aPaintMapMode.GetScaleY();
+ // }
aDrawMode.SetScaleX(aScaleX);
aDrawMode.SetScaleY(aScaleY);
}