summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/docshell/docsh.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index a2073b968f3a..84b5364112f4 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -473,11 +473,14 @@ sal_Bool ScDocShell::LoadXML( SfxMedium* pLoadMedium, const ::com::sun::star::un
// still need to recalc volatile formula cells.
aDocument.CalcFormulaTree(false, true, false);
+ bool bAdjustHeightOld = aDocument.IsAdjustHeightEnabled();
aDocument.EnableAdjustHeight(false);
aDocument.SetXMLFromWrapper( false );
AfterXMLLoading(bRet);
+ aDocument.EnableAdjustHeight(bAdjustHeightOld);
+
return bRet;
}