Kaydet (Commit) 6a56f5db authored tarafından Andre Fischer's avatar Andre Fischer

122027: Fixed crash when processing .uno:NumberType command.

Reported by:  Ariel Constenla-Haile
Patch by:  Ariel Constenla-Haile
Review by: Andre Fischer
üst 717671a6
......@@ -1105,9 +1105,12 @@ void ScFormatShell::ExecuteNumFormat( SfxRequest& rReq )
break;
case SID_NUMBER_TYPE_FORMAT:
if ( pReqArgs )
{
const SfxPoolItem* pItem;
if ( pReqArgs->GetItemState( nSlot, sal_True, &pItem ) == SFX_ITEM_SET )
{
SfxInt16Item aFormatItem((const SfxInt16Item&)rReq.GetArgs()->Get(nSlot));
sal_uInt16 nFormat = aFormatItem.GetValue();
sal_uInt16 nFormat = ((SfxInt16Item *)pItem)->GetValue();
switch(nFormat)
{
case 0:
......@@ -1145,6 +1148,7 @@ void ScFormatShell::ExecuteNumFormat( SfxRequest& rReq )
}
rReq.Done();
}
}
break;
default:
......
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