From: Josh Andler Date: Wed, 11 Aug 2010 18:35:19 +0000 (-0700) Subject: Fix crash 411940 by Alisher Niyazov X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f5e5a4cca7af9a9ae787e231e4b1950d6e97b53b;p=inkscape.git Fix crash 411940 by Alisher Niyazov --- diff --git a/src/ui/dialog/svg-fonts-dialog.cpp b/src/ui/dialog/svg-fonts-dialog.cpp index 998f4e1e1..d58869231 100644 --- a/src/ui/dialog/svg-fonts-dialog.cpp +++ b/src/ui/dialog/svg-fonts-dialog.cpp @@ -602,6 +602,7 @@ void SvgFontsDialog::glyph_unicode_edit(const Glib::ustring&, const Glib::ustrin void SvgFontsDialog::remove_selected_font(){ SPFont* font = get_selected_spfont(); + if (!font) return; sp_repr_unparent(font->repr); SPDocument* doc = sp_desktop_document(this->getDesktop());