diff options
author | Laurent Godard <lgodard.libre@laposte.net> | 2014-11-07 15:30:03 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-11-12 21:00:32 +0000 |
commit | 187ffc5e9966c3f2c09965b5ab8ebb43e12300e9 (patch) | |
tree | f018437b54f683919409af35aa3484ced3b91dda | |
parent | fa18fd06e0d9de3eb87f3bdec4aa00a587c9fd5f (diff) |
addNewFromTitles : avoid broadcasting SC_HINT_AREAS_CHANGED twice
as it is already done in subsequent calls (in ModifyRangeNames --> SetNewRangeNames)
perfchek result
before : 899399452
after : 645684676
Change-Id: I29b8add457c3177e63df29f93be7a11dacde4953
Reviewed-on: https://gerrit.libreoffice.org/12302
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index 465730293983..9cd90e8ed36d 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -5038,8 +5038,6 @@ bool ScDocFunc::CreateNames( const ScRange& rRange, sal_uInt16 nFlags, bool bApi ModifyRangeNames( aNewRanges, aTab ); bDone = true; - aModificator.SetDocumentModified(); - SfxGetpApp()->Broadcast( SfxSimpleHint( SC_HINT_AREAS_CHANGED ) ); } return bDone; |