summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/pfuncache.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2010-11-01 13:49:11 +0100
committerJan Holesovsky <kendy@suse.cz>2010-11-01 13:49:11 +0100
commitcbddc0a030fb9fa548571210fb81c7d64e916cb1 (patch)
tree7061dc2096cd993016396d09a6ca3d68c95f6ed3 /sc/source/ui/view/pfuncache.cxx
parent24a94d9d539be238fc60bdd13a1da20e6f9feb20 (diff)
parent50b023a94b59bedf747e1c16e829b8a28d1842a8 (diff)
Merge commit 'ooo/OOO330_m13'
Diffstat (limited to 'sc/source/ui/view/pfuncache.cxx')
-rw-r--r--sc/source/ui/view/pfuncache.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/view/pfuncache.cxx b/sc/source/ui/view/pfuncache.cxx
index 569e9bf876ad..5fe990aad697 100644
--- a/sc/source/ui/view/pfuncache.cxx
+++ b/sc/source/ui/view/pfuncache.cxx
@@ -73,6 +73,8 @@ ScPrintFuncCache::ScPrintFuncCache( ScDocShell* pD, const ScMarkData& rMark,
long nThisTab = 0;
if ( rMark.GetTableSelect( nTab ) )
{
+ pDoc->InvalidatePageBreaks( nTab ); // user print area (selection) may be different
+
ScPrintFunc aFunc( pDocSh, pPrinter, nTab, nAttrPage, 0, pSelRange, &aSelection.GetOptions() );
nThisTab = aFunc.GetTotalPages();
nFirstAttr[nTab] = aFunc.GetFirstPageNo(); // from page style or previous sheet