diff options
Diffstat (limited to 'src/object/sp-object.cpp')
| -rw-r--r-- | src/object/sp-object.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/object/sp-object.cpp b/src/object/sp-object.cpp index 764453ab3..a1c7f7075 100644 --- a/src/object/sp-object.cpp +++ b/src/object/sp-object.cpp @@ -424,8 +424,10 @@ gchar const *SPObject::defaultLabel() const { if (!_default_label) { if (getId()) { _default_label = g_strdup_printf("#%s", getId()); - } else { + } else if (getRepr()) { _default_label = g_strdup_printf("<%s>", getRepr()->name()); + } else { + _default_label = g_strdup("Default label"); } } return _default_label; |
