diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-02-08 21:04:05 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-02-09 02:44:08 +0100 |
commit | b14f61c40c1ddd897ba4b54c063753c2e3550d46 (patch) | |
tree | 1dde4be2ffa58a2ab0df0911b2cfdae53ff21f56 /sc/source/ui/view/preview.cxx | |
parent | d7eddc670410d7194918ff99c735052b880469d8 (diff) |
remove unnecessary check
Diffstat (limited to 'sc/source/ui/view/preview.cxx')
-rw-r--r-- | sc/source/ui/view/preview.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx index 51e581c81395..67e61719b656 100644 --- a/sc/source/ui/view/preview.cxx +++ b/sc/source/ui/view/preview.cxx @@ -269,7 +269,6 @@ void ScPreview::CalcPages() long nThisStart = nTotalPages; ScPrintFunc aPrintFunc( this, pDocShell, i, nAttrPage, 0, NULL, &aOptions ); - aPrintFunc.InitParam( &aOptions ); long nThisTab = aPrintFunc.GetTotalPages(); nPages[i] = nThisTab; nTotalPages += nThisTab; @@ -291,10 +290,7 @@ void ScPreview::CalcPages() if (nTabCount > nTabsTested) nTabsTested = nTabCount; - // testen, ob hinter letzter Seite - - if ( nTabsTested >= nTabCount ) - TestLastPage(); + TestLastPage(); aState.nDocPages = nTotalPages; |