summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-05-27 11:00:14 +0200
committerMichael Stahl <mstahl@redhat.com>2014-05-27 11:54:24 +0200
commit9428ec8dc7f44d465a5b9744b9ed95ce02adf104 (patch)
tree69a985e5e76393f3a9ed0b125b8b4376170242ee /sw
parentdc17b03f29e206c4d06b047934a2d6d68a288b06 (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.cxx2
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())