diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2019-11-08 08:06:04 +0000 |
|---|---|---|
| committer | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-11-10 23:12:10 +0000 |
| commit | 73a3fd0108bff10bda3b2fec907b90ff7cbf25e2 (patch) | |
| tree | ff5b94f8c44da76a83a359d38a8979c239ebbd23 /src | |
| parent | Use same label for Layers and Objects dialogs (diff) | |
| download | inkscape-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.cpp | 2 |
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! ")); |
