summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/impex.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index 104002539744..038a53dd3a01 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -1600,7 +1600,8 @@ bool ScImportExport::Doc2Text( SvStream& rStrm )
SCTAB nEndTab = aRange.aEnd.Tab();
if (!pDoc->GetClipParam().isMultiRange() && nStartTab == nEndTab)
- pDoc->ShrinkToDataArea( nStartTab, nStartCol, nStartRow, nEndCol, nEndRow );
+ if (!pDoc->ShrinkToDataArea( nStartTab, nStartCol, nStartRow, nEndCol, nEndRow ))
+ return false;
OUString aCellStr;