From: tweenk Date: Sun, 12 Apr 2009 22:42:20 +0000 (+0000) Subject: Only add builtin icons if loading from SVG succeeded X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5845bdb189bf4fcc1f778e370c3a0340e77eb476;p=inkscape.git Only add builtin icons if loading from SVG succeeded --- diff --git a/src/widgets/icon.cpp b/src/widgets/icon.cpp index 670a15838..deb3e7301 100644 --- a/src/widgets/icon.cpp +++ b/src/widgets/icon.cpp @@ -223,7 +223,7 @@ void sp_icon_fetch_pixbuf( SPIcon *icon ) if (!pb) { pb = sp_icon_image_load_svg( icon->name, Inkscape::getRegisteredIconSize(icon->lsize), icon->psize ); // if this was loaded from SVG, add it as a builtin icon - gtk_icon_theme_add_builtin_icon(icon->name, icon->psize, pb); + if (pb) gtk_icon_theme_add_builtin_icon(icon->name, icon->psize, pb); } if (!pb) { pb = sp_icon_image_load_pixmap( icon->name, icon->lsize, icon->psize );