diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-05-27 11:00:14 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-05-27 11:54:24 +0200 |
commit | 9428ec8dc7f44d465a5b9744b9ed95ce02adf104 (patch) | |
tree | 69a985e5e76393f3a9ed0b125b8b4376170242ee /sw | |
parent | dc17b03f29e206c4d06b047934a2d6d68a288b06 (diff) |
fdo#79236: sw: Undo of changing style crashes on invalid item (-1)
Change-Id: Ie0b0791722a0ca8d75b7981362661be0c9706c6d
(cherry picked from commit 732eee2de4d0579eda69fe0ebfa361180fa35456)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docfly.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/doc/docfly.cxx b/sw/source/core/doc/docfly.cxx index e306eb831751..cd5162c8b144 100644 --- a/sw/source/core/doc/docfly.cxx +++ b/sw/source/core/doc/docfly.cxx @@ -431,6 +431,8 @@ void SwDoc::CheckForUniqueItemForLineFillNameOrIndex(SfxItemSet& rSet) for(const SfxPoolItem* pItem = aIter.FirstItem(); pItem; pItem = aIter.NextItem()) { + if (IsInvalidItem(pItem)) + continue; const SfxPoolItem* pResult = pItem; switch(pItem->Which()) |