coverity#1000603 Unchecked dynamic_cast
Change-Id: Ia750c9cc1c6a4182d220ad22013ac1450c498539
This commit is contained in:
@@ -214,7 +214,7 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet )
|
|||||||
{
|
{
|
||||||
if( nSlotId == SID_ATTR_CHAR_FONTHEIGHT )
|
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());
|
aFontItem.SetHeight(aFontItem.GetHeight(), stretchX, aFontItem.GetPropUnit());
|
||||||
aAttrSet.Put( aFontItem, nWhich );
|
aAttrSet.Put( aFontItem, nWhich );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user