Kaydet (Commit) e42792b6 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Perhaps it will help to set the pointer to NULL when the item is not set.

üst e64c291c
......@@ -548,7 +548,10 @@ SfxItemState SfxItemSet::GetItemState( sal_uInt16 nWhich,
bool SfxItemSet::HasItem(sal_uInt16 nWhich, const SfxPoolItem*& rpItem) const
{
return SFX_ITEM_SET == GetItemState(nWhich, true, &rpItem);
bool bRet = SFX_ITEM_SET == GetItemState(nWhich, true, &rpItem);
if (!bRet)
rpItem = NULL;
return bRet;
}
// -----------------------------------------------------------------------
......
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