summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2019-11-08 08:06:04 +0000
committerNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-11-10 23:12:10 +0000
commit73a3fd0108bff10bda3b2fec907b90ff7cbf25e2 (patch)
treeff5b94f8c44da76a83a359d38a8979c239ebbd23 /src
parentUse same label for Layers and Objects dialogs (diff)
downloadinkscape-73a3fd0108bff10bda3b2fec907b90ff7cbf25e2.tar.gz
inkscape-73a3fd0108bff10bda3b2fec907b90ff7cbf25e2.zip
Crashfix: set an unset id in Object Properties
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/object-properties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/dialog/object-properties.cpp b/src/ui/dialog/object-properties.cpp
index b0a074dd3..b24df07c0 100644
--- a/src/ui/dialog/object-properties.cpp
+++ b/src/ui/dialog/object-properties.cpp
@@ -414,7 +414,7 @@ void ObjectProperties::_labelChanged()
/* Retrieve the label widget for the object's id */
gchar *id = g_strdup(_entry_id.get_text().c_str());
g_strcanon(id, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.:", '_');
- if (strcmp(id, item->getId()) == 0) {
+ if (g_strcmp0(id, item->getId()) == 0) {
_label_id.set_markup_with_mnemonic(_("_ID:") + Glib::ustring(" "));
} else if (!*id || !isalnum (*id)) {
_label_id.set_text(_("Id invalid! "));