From 2b56810c6a95306616f8e64499bfa20476dc7dff Mon Sep 17 00:00:00 2001 From: Gail Carmichael Date: Thu, 10 Jan 2008 22:40:48 +0000 Subject: Fix for Bug #181663 (Font style errors / assert when changing style) - I didn't see the problem described in the main part, but the assert was overzealous and, in my new opinion, shouldn't be there, so it's gone. - Fixed other style button problems mentioned in comments. (bzr r4453) --- src/libnrtype/FontFactory.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp index 2d56a1a41..98846b77f 100644 --- a/src/libnrtype/FontFactory.cpp +++ b/src/libnrtype/FontFactory.cpp @@ -420,8 +420,6 @@ Glib::ustring font_factory::ReplaceFontSpecificationFamily(const Glib::ustring & // Find the PangoFontDescription associated to this fontSpec PangoStringToDescrMap::iterator it = fontInstanceMap.find(fontSpec); - g_assert(it != fontInstanceMap.end()); - if (it != fontInstanceMap.end()) { PangoFontDescription *descr = pango_font_description_copy((*it).second); @@ -496,8 +494,6 @@ Glib::ustring font_factory::FontSpecificationSetItalic(const Glib::ustring & fon // Find the PangoFontDesecription that goes with this font specification string PangoStringToDescrMap::iterator it = fontInstanceMap.find(fontSpec); - g_assert(it != fontInstanceMap.end()); - if (it != fontInstanceMap.end()) { // If we did find one, make a copy and set/unset the italic as needed PangoFontDescription *descr = pango_font_description_copy((*it).second); -- cgit v1.2.3