summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorGail Carmichael <gail.banaszkiewicz@gmail.com>2008-01-10 22:40:48 +0000
committergbanaszk <gbanaszk@users.sourceforge.net>2008-01-10 22:40:48 +0000
commit2b56810c6a95306616f8e64499bfa20476dc7dff (patch)
tree263eeb6eed8571cebe29fc574182ae35ca2d7e97 /src/libnrtype
parentFix small z-order error for 3D boxes (diff)
downloadinkscape-2b56810c6a95306616f8e64499bfa20476dc7dff.tar.gz
inkscape-2b56810c6a95306616f8e64499bfa20476dc7dff.zip
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)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/FontFactory.cpp4
1 files changed, 0 insertions, 4 deletions
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);