diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-06-12 08:34:25 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-06-12 08:34:25 +0000 |
| commit | 8a770ef011addbbaeced36ecc059cc736154aac4 (patch) | |
| tree | ceb039e04b2d3c6ab3d6e173df44e41628514df6 /src/ui | |
| parent | Fix coding style (diff) | |
| download | inkscape-8a770ef011addbbaeced36ecc059cc736154aac4.tar.gz inkscape-8a770ef011addbbaeced36ecc059cc736154aac4.zip | |
Fix a bug changing desktop
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/icon-loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/icon-loader.cpp b/src/ui/icon-loader.cpp index 3840d64b7..e4a917e6c 100644 --- a/src/ui/icon-loader.cpp +++ b/src/ui/icon-loader.cpp @@ -62,7 +62,7 @@ Glib::RefPtr<Gdk::Pixbuf> sp_get_icon_pixbuf(Glib::ustring icon_name, gint size) Inkscape::Preferences *prefs = Inkscape::Preferences::get(); if (prefs->getBool("/theme/symbolicIcons", false)) { Gtk::IconInfo iconinfo = icon_theme->lookup_icon(icon_name + Glib::ustring("-symbolic"), size, Gtk::ICON_LOOKUP_FORCE_SIZE); - if (iconinfo) { + if (iconinfo && SP_ACTIVE_DESKTOP->getToplevel()) { bool was_symbolic = false; _icon_pixbuf = iconinfo.load_symbolic(SP_ACTIVE_DESKTOP->getToplevel()->get_style_context(), was_symbolic); } else { |
