From: Josh Andler Date: Wed, 11 Aug 2010 18:33:35 +0000 (-0700) Subject: Fix crash 411940 by Alisher Niyazov X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ef1396977ce8bb24b77f6271d57020a631c4242b;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());