diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2008-02-27 06:37:53 +0000 |
|---|---|---|
| committer | JucaBlues <JucaBlues@users.sourceforge.net> | 2008-02-27 06:37:53 +0000 |
| commit | f203599bc933f960d67d12c588caaf87b10f3545 (patch) | |
| tree | 714e58990b8528c7960084e1f28f75701437b38f /src/sp-font.cpp | |
| parent | more boilerplate code for SVGFonts (diff) | |
| download | inkscape-f203599bc933f960d67d12c588caaf87b10f3545.tar.gz inkscape-f203599bc933f960d67d12c588caaf87b10f3545.zip | |
tiny refactoring
(bzr r4880)
Diffstat (limited to 'src/sp-font.cpp')
| -rw-r--r-- | src/sp-font.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/sp-font.cpp b/src/sp-font.cpp index 549bb22fd..07754357c 100644 --- a/src/sp-font.cpp +++ b/src/sp-font.cpp @@ -15,6 +15,7 @@ #include "attributes.h" #include "sp-font.h" #include "document.h" +#include "helper-fns.h" static void sp_font_class_init(SPFontClass *fc); static void sp_font_init(SPFont *font); @@ -97,20 +98,6 @@ static void sp_font_release(SPObject *object) } } -//ToDo: use helper-fns.h -inline double helperfns_read_number(gchar const *value) { - if (!value) return 0; - char *end; - double ret = g_ascii_strtod(value, &end); - if (*end) { - g_warning("Unable to convert \"%s\" to number", value); - // We could leave this out, too. If strtod can't convert - // anything, it will return zero. - ret = 0; - } - return ret; -} - static void sp_font_set(SPObject *object, unsigned int key, const gchar *value) { SPFont *font = SP_FONT(object); |
