diff options
| author | JiHO <jiho-sf@users.sourceforge.net> | 2007-08-14 16:40:18 +0000 |
|---|---|---|
| committer | jiho-sf <jiho-sf@users.sourceforge.net> | 2007-08-14 16:40:18 +0000 |
| commit | 9a03c9c79f18df69117139c003dd70d8cfd6cc5d (patch) | |
| tree | 4143c39fd40c7a1823c7ed51cd737106b0ba259e /src/extension/paramcolor.cpp | |
| parent | Filter effects dialog: (diff) | |
| download | inkscape-9a03c9c79f18df69117139c003dd70d8cfd6cc5d.tar.gz inkscape-9a03c9c79f18df69117139c003dd70d8cfd6cc5d.zip | |
changed strndup to its gtk version (g_strndup) because compilation other wise fails on non-linux platforms
(bzr r3467)
Diffstat (limited to 'src/extension/paramcolor.cpp')
| -rw-r--r-- | src/extension/paramcolor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extension/paramcolor.cpp b/src/extension/paramcolor.cpp index 83dba1b2b..c70d407f6 100644 --- a/src/extension/paramcolor.cpp +++ b/src/extension/paramcolor.cpp @@ -73,9 +73,9 @@ ParamColor::ParamColor (const gchar * name, const gchar * guitext, const gchar * if (strlen(defaulthex) == 6) { int r = 0, g = 0, b = 0; std::stringstream ss; - ss << strndup(defaulthex, 2); + ss << g_strndup(defaulthex, 2); ss >> std::hex >> r; - ss << strndup(defaulthex + 2, 2); + ss << g_strndup(defaulthex + 2, 2); ss >> std::hex >> g; ss << defaulthex + 4; ss >> std::hex >> b; |
