diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-16 22:45:10 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-16 22:45:10 -0400 |
commit | 93868637efadeb4b33b7b1944358b1c83169ab76 (patch) | |
tree | 47c02541c633152ebb9ad04f25bcd47842b79c49 /sc | |
parent | 497ae5b7a9d2138530d6eee08617496651b72d58 (diff) |
Comment why I do this.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/ftools/fapihelper.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/ftools/fapihelper.cxx b/sc/source/filter/ftools/fapihelper.cxx index dba3480e4861..82c720e559b9 100644 --- a/sc/source/filter/ftools/fapihelper.cxx +++ b/sc/source/filter/ftools/fapihelper.cxx @@ -171,6 +171,7 @@ ScfPropertySet::~ScfPropertySet() { Reference<beans::XPropertySetOption> xPropSetOpt(mxPropSet, UNO_QUERY); if (xPropSetOpt.is()) + // Turn the property value change notification back on when finished. xPropSetOpt->enableChangeListenerNotification(true); } @@ -180,6 +181,8 @@ void ScfPropertySet::Set( Reference< XPropertySet > xPropSet ) mxMultiPropSet.set( mxPropSet, UNO_QUERY ); Reference<beans::XPropertySetOption> xPropSetOpt(mxPropSet, UNO_QUERY); if (xPropSetOpt.is()) + // We don't want to broadcast property value changes during import to + // improve performance. xPropSetOpt->enableChangeListenerNotification(false); } |