diff options
author | Eike Rathke <erack@redhat.com> | 2011-11-27 23:43:32 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2011-11-28 15:25:29 +0100 |
commit | 40f38c8c9813568dfbd91e9ea97be16b69cf702a (patch) | |
tree | 8944439cb44f96fdb3a6519e6b2c9e3a8d7759c0 /sc/source/ui | |
parent | b0477f94d4c811b4e071e11c50bfee7977ee62f1 (diff) |
dr78: #i95280# avoid repeated progress bars in ScPrintFuncCache for all sheets
# HG changeset patch
# User Niklas Nebel <nn@openoffice.org>
# Date 1291652223 -3600
# Node ID d7e6b1b9f73647c4be281748bc9d68a8773d1056
# Parent 029c278f68940ca4f1ea089cf2ddc62ffdb13d87
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/pfuncache.cxx | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 95f5ee23c7f4..667bb4c6683c 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -1087,8 +1087,6 @@ uno::Sequence<beans::PropertyValue> SAL_CALL ScModelObj::getRenderer( sal_Int32 pArray[2].Value <<= aRangeAddress; } - // FIXME: is this for side effects ? - SC_MOD()->GetPrintOptions(); if( ! pPrinterOptions ) pPrinterOptions = new ScPrintUIOptions; else diff --git a/sc/source/ui/view/pfuncache.cxx b/sc/source/ui/view/pfuncache.cxx index 294c98b14f57..f13b2933d736 100644 --- a/sc/source/ui/view/pfuncache.cxx +++ b/sc/source/ui/view/pfuncache.cxx @@ -65,6 +65,11 @@ ScPrintFuncCache::ScPrintFuncCache( ScDocShell* pD, const ScMarkData& rMark, ScDocument* pDoc = pDocSh->GetDocument(); SCTAB nTabCount = pDoc->GetTableCount(); + + // avoid repeated progress bars if row heights for all sheets are needed + if ( nTabCount > 1 && rMark.GetSelectCount() == nTabCount ) + pDocSh->UpdatePendingRowHeights( nTabCount-1, true ); + SCTAB nTab; for ( nTab=0; nTab<nTabCount; nTab++ ) { |