diff options
Diffstat (limited to 'src/ui/widget/selected-style.cpp')
| -rw-r--r-- | src/ui/widget/selected-style.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp index 216b2688b..0fc19e282 100644 --- a/src/ui/widget/selected-style.cpp +++ b/src/ui/widget/selected-style.cpp @@ -1096,7 +1096,10 @@ SelectedStyle::update() current_stroke_width = w; { - gchar *str = g_strdup_printf(" %.3g", w); + gchar *str = g_strdup_printf(" %#.3g", w); + if (str[strlen(str)-1] == ',') { + str[strlen(str)-1] = '\0'; + } _stroke_width.set_markup(str); g_free (str); } |
