summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/filter/xml/xmlimprt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index 902070025fe8..36f3c3f8baa9 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -1806,7 +1806,7 @@ void SAL_CALL ScXMLImport::endDocument()
}
// There are rows with optimal height which need to be updated
- if (!maRecalcRowRanges.empty())
+ if (pDoc && !maRecalcRowRanges.empty())
{
bool bLockHeight = pDoc->IsAdjustHeightLocked();
if (bLockHeight)