diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-07-26 17:05:24 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-07-28 13:13:40 +0000 |
commit | c83026ede5a9ae57683b92d1919e874696024944 (patch) | |
tree | 288976253a460fe0e55f23bf23af1d0cf658e48c /sax | |
parent | c8fb4f13309ffecbaa72e0108315bb917ea33064 (diff) |
fdo#67303: sw: speed up setting IsHidden property on styles
Importing an ODF document with 4089 styles is ridiculously slow,
spending most of the time in SwStyleSheetIterator::First() to reset
an existing iterator.
Since the SwStyleSheetIterator can handle the case when First() has not
been called anyway, just add a new method that resets the bFirstCalled
flag, which takes next to no time.
(regression from a0dcf961879ab644a52f801f65466756cb144b72)
(cherry picked from commit 8fb210a2ddc0b09288316cf459bebfe196ea94fb)
Conflicts:
svl/inc/svl/style.hxx
Change-Id: I8741b4c0cd51f8c244462ce28a754abc427d0df3
Reviewed-on: https://gerrit.libreoffice.org/5138
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sax')
0 files changed, 0 insertions, 0 deletions