summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8e11761)
raw | patch | inline | side by side (parent: 8e11761)
author | JucaBlues <JucaBlues@users.sourceforge.net> | |
Wed, 27 Feb 2008 06:37:53 +0000 (06:37 +0000) | ||
committer | JucaBlues <JucaBlues@users.sourceforge.net> | |
Wed, 27 Feb 2008 06:37:53 +0000 (06:37 +0000) |
src/helper-fns.h | patch | blob | history | |
src/sp-font.cpp | patch | blob | history |
diff --git a/src/helper-fns.h b/src/helper-fns.h
index 635aefd79525ddee3554a308ca15f5e394678191..39d919aa7b4c8472355516557b60ec4d80715a80 100644 (file)
--- a/src/helper-fns.h
+++ b/src/helper-fns.h
*/
#include <string.h>
-
+#include <vector>
#include <sstream>
// calling helperfns_read_number(string, false), it's not obvious, what
diff --git a/src/sp-font.cpp b/src/sp-font.cpp
index 549bb22fd4107d5459b0846720c4bed288467e67..07754357cd4bf25c56032d18ba2d49500b0a595c 100644 (file)
--- a/src/sp-font.cpp
+++ b/src/sp-font.cpp
#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);
}
}
-//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);