diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-12-23 19:38:09 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-12-23 19:39:02 +0200 |
commit | 51dfbc3c09e8cc0d713af81923bbc99aa0f80f65 (patch) | |
tree | 3ec5909fe9b707e01b7cea875594cb22c8b6a463 /community/inkscape/fix-crash.patch | |
parent | 3ff9f120d935865cea6e006ea7ba1131f8dafac9 (diff) | |
download | aports-51dfbc3c09e8cc0d713af81923bbc99aa0f80f65.tar.bz2 aports-51dfbc3c09e8cc0d713af81923bbc99aa0f80f65.tar.xz |
community/inkscape: fix crash on startup
Diffstat (limited to 'community/inkscape/fix-crash.patch')
-rw-r--r-- | community/inkscape/fix-crash.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/community/inkscape/fix-crash.patch b/community/inkscape/fix-crash.patch new file mode 100644 index 0000000000..e28aac49d2 --- /dev/null +++ b/community/inkscape/fix-crash.patch @@ -0,0 +1,16 @@ +From: Timo Teräs <timo.teras@iki.fi> + +Remove redundant object instantiation which yields returning c_str to +temporary stack object. + +--- inkscape-0.91/src/libnrtype/FontFactory.cpp 2015-12-23 19:36:15.310394043 +0200 ++++ inkscape-0.91/src/libnrtype/FontFactory.cpp 2015-12-23 19:35:31.876527221 +0200 +@@ -194,7 +194,7 @@ + const char *pangoFamily = pango_font_description_get_family(fontDescr); + + if (pangoFamily && ((it = fontNameMap.find(pangoFamily)) != fontNameMap.end())) { +- return ((Glib::ustring)it->second).c_str(); ++ return it->second.c_str(); + } + + return pangoFamily; |