Kaydet (Commit) 0423b5c3 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Michael Stahl

crashtesting+ubsan: kde170880-1.html bad cast to SdrTextAniCountItem

because a clone of SdrTextAniCountItem is a SfxUInt16Item not
a SdrTextAniCountItem

Change-Id: I7b8f99b52b1f42a6a28af4495ff25ddb6d497f61
(cherry picked from commit e5c8d01b)
Reviewed-on: https://gerrit.libreoffice.org/19536Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 1b23c829
...@@ -26,7 +26,13 @@ ...@@ -26,7 +26,13 @@
class SdrTextAniCountItem: public SfxUInt16Item { class SdrTextAniCountItem: public SfxUInt16Item {
public: public:
SdrTextAniCountItem(sal_uInt16 nVal=0): SfxUInt16Item(SDRATTR_TEXT_ANICOUNT,nVal) {} SdrTextAniCountItem(sal_uInt16 nVal=0): SfxUInt16Item(SDRATTR_TEXT_ANICOUNT,nVal) {}
SdrTextAniCountItem(SvStream& rIn): SfxUInt16Item(SDRATTR_TEXT_ANICOUNT,rIn) {} SdrTextAniCountItem(SvStream& rIn): SfxUInt16Item(SDRATTR_TEXT_ANICOUNT,rIn) {}
virtual SfxPoolItem * Create(SvStream & rStream, sal_uInt16) const override
{ return new SdrTextAniCountItem(rStream); }
virtual SfxPoolItem * Clone(SfxItemPool * = 0) const override
{ return new SdrTextAniCountItem(*this); }
}; };
#endif #endif
......
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