diff options
| author | Martin Owens <doctormo@gmail.com> | 2013-04-21 00:34:35 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2013-04-21 00:34:35 +0000 |
| commit | 5ceb89e41d788ae9ed18b972cedbbfcb923ddc27 (patch) | |
| tree | f7704bc3c60dfd1d7ec0b2074e28f3aa3dd287fc /src/xml/repr-util.cpp | |
| parent | Pull Merge (diff) | |
| download | inkscape-5ceb89e41d788ae9ed18b972cedbbfcb923ddc27.tar.gz inkscape-5ceb89e41d788ae9ed18b972cedbbfcb923ddc27.zip | |
Throw better error when attribute isn't available
(bzr r12288)
Diffstat (limited to 'src/xml/repr-util.cpp')
| -rw-r--r-- | src/xml/repr-util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp index 6ea20b87a..8c8425de0 100644 --- a/src/xml/repr-util.cpp +++ b/src/xml/repr-util.cpp @@ -524,6 +524,8 @@ unsigned int sp_repr_get_point(Inkscape::XML::Node *repr, gchar const *key, Geom gchar const *v = repr->attribute(key); + g_return_val_if_fail(v != NULL, FALSE); + gchar ** strarray = g_strsplit(v, ",", 2); if (strarray && strarray[0] && strarray[1]) { |
