summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/vector.cpp
diff options
context:
space:
mode:
authorAndrew Higginson <at.higginson@gmail.com>2011-12-27 21:04:47 +0000
committerAndrew <at.higginson@gmail.com>2011-12-27 21:04:47 +0000
commit80960b623a99aae1402ab651b2974ef544ed3b03 (patch)
treeba49d42c2789e9e11f805e2d5263e10f9fedeef8 /src/live_effects/parameter/vector.cpp
parenttry to fix bug (diff)
parentGDL: Cherry-pick upstream patch 73852 (2011-03-23) - Add missing return value. (diff)
downloadinkscape-80960b623a99aae1402ab651b2974ef544ed3b03.tar.gz
inkscape-80960b623a99aae1402ab651b2974ef544ed3b03.zip
merged with trunk so I can build again...
(bzr r10092.1.36)
Diffstat (limited to 'src/live_effects/parameter/vector.cpp')
-rw-r--r--src/live_effects/parameter/vector.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/live_effects/parameter/vector.cpp b/src/live_effects/parameter/vector.cpp
index 9086ab376..6d0824ae0 100644
--- a/src/live_effects/parameter/vector.cpp
+++ b/src/live_effects/parameter/vector.cpp
@@ -53,9 +53,12 @@ bool
VectorParam::param_readSVGValue(const gchar * strvalue)
{
gchar ** strarray = g_strsplit(strvalue, ",", 4);
+ if (!strarray) {
+ return false;
+ }
double val[4];
unsigned int i = 0;
- while (strarray[i] && i < 4) {
+ while (i < 4 && strarray[i]) {
if (sp_svg_number_read_d(strarray[i], &val[i]) != 0) {
i++;
} else {