diff options
| author | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-11-05 22:37:05 +0000 |
|---|---|---|
| committer | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-11-10 23:12:10 +0000 |
| commit | 5b22a003be75c72b07ae9ed90496be9f5bee4992 (patch) | |
| tree | f1e3367055f1aea84e0996cef7bbbd6ae981ecda /src/ui/dialog/object-properties.cpp | |
| parent | Updated es.po with a few new strings from the source code (diff) | |
| download | inkscape-5b22a003be75c72b07ae9ed90496be9f5bee4992.tar.gz inkscape-5b22a003be75c72b07ae9ed90496be9f5bee4992.zip | |
Use same label for Layers and Objects dialogs
Also prevent crash for unset ids in Object Properties
Fix https://gitlab.com/inkscape/inbox/issues/1129
Diffstat (limited to 'src/ui/dialog/object-properties.cpp')
| -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 fdf48ed53..b0a074dd3 100644 --- a/src/ui/dialog/object-properties.cpp +++ b/src/ui/dialog/object-properties.cpp @@ -342,7 +342,7 @@ void ObjectProperties::update() SPObject *obj = static_cast<SPObject*>(item); /* ID */ - _entry_id.set_text(obj->getId()); + _entry_id.set_text(obj->getId() ? obj->getId() : ""); _entry_id.set_sensitive(TRUE); _label_id.set_markup_with_mnemonic(_("_ID:") + Glib::ustring(" ")); |
