diff options
author | David Robillard <d@drobilla.net> | 2015-02-17 03:40:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-02-17 03:40:36 +0000 |
commit | fd84402de98a7a941e0eba0d5da76b042eac1ded (patch) | |
tree | b224d21bcebc674673163e7607f8bf1f4141eb3d /src/node.c | |
parent | d4ce698948b6d3aa18e692138e8d4392219aa187 (diff) | |
download | ganv-fd84402de98a7a941e0eba0d5da76b042eac1ded.tar.gz ganv-fd84402de98a7a941e0eba0d5da76b042eac1ded.tar.bz2 ganv-fd84402de98a7a941e0eba0d5da76b042eac1ded.zip |
Fix crash when getting empty label.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5580 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -198,7 +198,7 @@ ganv_node_get_property(GObject* object, switch (prop_id) { GET_CASE(PARTNER, object, impl->partner); - GET_CASE(LABEL, string, impl->label->impl->text); + GET_CASE(LABEL, string, impl->label ? impl->label->impl->text : NULL); GET_CASE(DASH_LENGTH, double, impl->dash_length); GET_CASE(DASH_OFFSET, double, impl->dash_offset); GET_CASE(BORDER_WIDTH, double, impl->border_width); |