coverity#1000603 Unchecked dynamic_cast

Change-Id: Ia750c9cc1c6a4182d220ad22013ac1450c498539
This commit is contained in:
Caolán McNamara
2014-05-24 12:08:52 +01:00
parent 15e030839b
commit c51fe1cf11

View File

@@ -214,7 +214,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet )
{
if( nSlotId == SID_ATTR_CHAR_FONTHEIGHT )
{
SvxFontHeightItem aFontItem = *(dynamic_cast<const SvxFontHeightItem *>(pI));
SvxFontHeightItem aFontItem = dynamic_cast<const SvxFontHeightItem&>(*pI);
aFontItem.SetHeight(aFontItem.GetHeight(), stretchX, aFontItem.GetPropUnit());
aAttrSet.Put( aFontItem, nWhich );
}