summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/dinfdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/dinfdlg.cxx')
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index c11419dc02d9..044757c6cdd2 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -731,7 +731,8 @@ bool SfxDocumentDescPage::FillItemSet(SfxItemSet *rSet)
pInfo->setDescription( m_xCommentEd->get_text() );
}
rSet->Put( *pInfo );
- if ( pInfo != m_pInfoItem )
+ // ptr compare OK, pInfo was created above as temporary data holder
+ if ( !areSfxPoolItemPtrsEqual(pInfo, m_pInfoItem) )
{
delete pInfo;
}