Kaydet (Commit) 1de2d971 authored tarafından Michael Stahl's avatar Michael Stahl Kaydeden (comit) Fridrich Štrba

fdo#79236: sw: Undo of changing style crashes on invalid item (-1)

Change-Id: Ie0b0791722a0ca8d75b7981362661be0c9706c6d
üst ad215050
...@@ -450,6 +450,8 @@ void SwDoc::CheckForUniqueItemForLineFillNameOrIndex(SfxItemSet& rSet) ...@@ -450,6 +450,8 @@ void SwDoc::CheckForUniqueItemForLineFillNameOrIndex(SfxItemSet& rSet)
for(const SfxPoolItem* pItem = aIter.FirstItem(); pItem; pItem = aIter.NextItem()) for(const SfxPoolItem* pItem = aIter.FirstItem(); pItem; pItem = aIter.NextItem())
{ {
if (IsInvalidItem(pItem))
continue;
const SfxPoolItem* pResult = pItem; const SfxPoolItem* pResult = pItem;
switch(pItem->Which()) switch(pItem->Which())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment