summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-10-28 19:06:12 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-10-28 19:06:12 +0000
commit0350e015e0b322e0651cec49346dff42e630711a (patch)
tree9bf67ec38488676bffc13a2342c828888baea573 /src/libnrtype
parentFix for bug #1156394 (OCAL dialog: Close button in German localization contai... (diff)
downloadinkscape-0350e015e0b322e0651cec49346dff42e630711a.tar.gz
inkscape-0350e015e0b322e0651cec49346dff42e630711a.zip
fix crash
Fixed bugs: - https://launchpad.net/bugs/1230241 (bzr r12740)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/font-lister.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp
index aa50f4be0..759acfb26 100644
--- a/src/libnrtype/font-lister.cpp
+++ b/src/libnrtype/font-lister.cpp
@@ -155,7 +155,7 @@ namespace Inkscape
/* See if font-family (or first in fallback list) is on system. If so, get styles. */
std::vector<Glib::ustring> tokens = Glib::Regex::split_simple(",", *i );
- if( !tokens[0].empty() ) {
+ if( !tokens.empty() && !tokens[0].empty() ) {
Gtk::TreeModel::iterator iter2 = font_list_store->get_iter( "0" );
while( iter2 != font_list_store->children().end() ) {