fdo#80280 Don't add items with no bitmaps
Change-Id: I625aff5d2dcae0b1491fa77b04605d4579ec8530
This commit is contained in:
@@ -4887,6 +4887,8 @@ SvxIconSelectorDialog::SvxIconSelectorDialog( vcl::Window *pWindow,
|
|||||||
if ( graphics.getLength() > 0 )
|
if ( graphics.getLength() > 0 )
|
||||||
{
|
{
|
||||||
Image img = Image( graphics[ 0 ] );
|
Image img = Image( graphics[ 0 ] );
|
||||||
|
if ( !img.GetBitmapEx().IsEmpty() )
|
||||||
|
{
|
||||||
pTbSymbol->InsertItem( nId, img, pConstIter->first );
|
pTbSymbol->InsertItem( nId, img, pConstIter->first );
|
||||||
|
|
||||||
uno::Reference< graphic::XGraphic > xGraphic = graphics[ 0 ];
|
uno::Reference< graphic::XGraphic > xGraphic = graphics[ 0 ];
|
||||||
@@ -4899,6 +4901,7 @@ SvxIconSelectorDialog::SvxIconSelectorDialog( vcl::Window *pWindow,
|
|||||||
|
|
||||||
++nId;
|
++nId;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
++pConstIter;
|
++pConstIter;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user