summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-03-08 11:32:14 +0000
committertavmjong-free <tavmjong@free.fr>2014-03-08 11:32:14 +0000
commit74ca8ed7b0fd0fd629231d6fa01db0e87bd0a546 (patch)
treec05aa9fea926904727f5181849cdf554ce85133f /src/style.cpp
parentReconnect correctly as documents are replaced. (diff)
downloadinkscape-74ca8ed7b0fd0fd629231d6fa01db0e87bd0a546.tar.gz
inkscape-74ca8ed7b0fd0fd629231d6fa01db0e87bd0a546.zip
Update attributes unit test, expand style unit test and fix bug found.
(bzr r13128)
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/style.cpp b/src/style.cpp
index ad5aa17ae..f3a12db86 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -4785,7 +4785,7 @@ sp_style_write_ifontsize(gchar *p, gint const len, gchar const *key,
return g_snprintf(p, len, "%s:inherit;", key);
} else if (val->type == SP_FONT_SIZE_LITERAL) {
for (unsigned i = 0; enum_font_size[i].key; i++) {
- if (enum_font_size[i].value == static_cast< gint > (val->value) ) {
+ if (enum_font_size[i].value == static_cast< gint > (val->literal) ) {
return g_snprintf(p, len, "%s:%s;", key, enum_font_size[i].key);
}
}