summaryrefslogtreecommitdiffstats
path: root/src/widgets/text-toolbar.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-02-03 18:37:58 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-02-03 18:37:58 +0000
commitc37431c37889fed55de3b8c76a0dc0569f0fe42d (patch)
tree44b3d59d07ea09f2ac9833f6548985fb1af3cc71 /src/widgets/text-toolbar.cpp
parentAllow simple font style changes even if first font-family in font list is not... (diff)
downloadinkscape-c37431c37889fed55de3b8c76a0dc0569f0fe42d.tar.gz
inkscape-c37431c37889fed55de3b8c76a0dc0569f0fe42d.zip
fix crash
Fixed bugs: - https://launchpad.net/bugs/1114243 (bzr r12094)
Diffstat (limited to 'src/widgets/text-toolbar.cpp')
-rw-r--r--src/widgets/text-toolbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/text-toolbar.cpp b/src/widgets/text-toolbar.cpp
index 9fdc1ea7b..f9921864c 100644
--- a/src/widgets/text-toolbar.cpp
+++ b/src/widgets/text-toolbar.cpp
@@ -238,7 +238,7 @@ static void sp_text_fontstyle_populate(GObject *tbl, font_instance *font=NULL)
}
// Select the style in the combo that best matches font
- if (font) {
+ if (font && list) {
unsigned int index = sp_font_selector_get_best_style(font, list);