summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/documen2.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 5774c3331299..38ca15dbc198 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -710,15 +710,14 @@ bool ScDocument::GetDataStart( SCTAB nTab, SCCOL& rStartCol, SCROW& rStartRow )
bool ScDocument::GetTiledRenderingArea(SCTAB nTab, SCCOL& rEndCol, SCROW& rEndRow) const
{
- if (!GetPrintArea(nTab, rEndCol, rEndRow, false))
- return false;
+ bool bHasPrintArea = GetPrintArea(nTab, rEndCol, rEndRow, false);
// we need some reasonable minimal document size
- if (rEndCol < 12)
- rEndCol = 12;
+ if (!bHasPrintArea || rEndCol < 20)
+ rEndCol = 20;
- if (rEndRow < 36)
- rEndRow = 36;
+ if (!bHasPrintArea || rEndRow < 50)
+ rEndRow = 50;
return true;
}