summaryrefslogtreecommitdiff
path: root/sc/source/filter
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-11-21 14:23:32 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-11-22 09:07:21 -0500
commite8fe1e2e7fcbfc36559429afdfdbed149259e42f (patch)
tree83231a9d531b2c1aafccdf9706dba6f1122bdd74 /sc/source/filter
parent173dfb3f2e3c07b35fa05a218d9860720850a6a3 (diff)
Call the method directly via ScDocument, not via obscure UNO API.
Change-Id: I27628314337ae4df31420d63d7c09148369a6759
Diffstat (limited to 'sc/source/filter')
-rw-r--r--sc/source/filter/oox/workbookhelper.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/filter/oox/workbookhelper.cxx b/sc/source/filter/oox/workbookhelper.cxx
index 31dd5bdae4cd..a27998ea33ee 100644
--- a/sc/source/filter/oox/workbookhelper.cxx
+++ b/sc/source/filter/oox/workbookhelper.cxx
@@ -628,10 +628,8 @@ void WorkbookGlobals::finalize()
PropertySet aPropSet( mxDoc );
// #i74668# do not insert default sheets
aPropSet.setProperty( PROP_IsLoaded, true );
- // #i79890# enable automatic update of defined names (before IsAdjustHeightEnabled!)
- Reference< XActionLockable > xLockable( aPropSet.getAnyProperty( PROP_NamedRanges ), UNO_QUERY );
- if( xLockable.is() )
- xLockable->removeActionLock();
+ // #i79890# Compile named ranges before re-enabling row height adjustment. (no idea why).
+ mpDoc->CompileNameFormula(false);
// enable automatic update of linked sheets and DDE links
aPropSet.setProperty( PROP_IsExecuteLinkEnabled, true );
// #i79826# enable updating automatic row height after loading the document