summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Pryor <jpryor@novell.com>2010-09-15 12:05:15 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2010-09-15 14:09:37 +0200
commit4927b87e1dcbbd8848f74da1b99fd43a67139177 (patch)
treec083e43c70439ea6c4756a7c20ae69d424c9437c
parent7e905a8c791eee19d905f6655e4d5f0eeded38a2 (diff)
sc-print-lines.diff: print & page preview for files containing only lines
n#351468, i#85076
-rw-r--r--sc/source/core/data/column2.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 2adf6d926f0f..fadd75248a66 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -1321,6 +1321,10 @@ BOOL ScColumn::IsEmpty() const
BOOL ScColumn::IsEmptyBlock(SCROW nStartRow, SCROW nEndRow, bool bIgnoreNotes) const
{
+ Rectangle aRect;
+ if (pAttrArray->HasLines(nStartRow, nEndRow, aRect, TRUE, TRUE))
+ return FALSE;
+
if ( nCount == 0 || !pItems )
return TRUE;