diff --git a/src/ui/dialog/attrdialog.cpp b/src/ui/dialog/attrdialog.cpp index e488ee45f21a497ff35b9b9eec03ebacc0ebb78f..24c3f988f82b06684ee9ba10e195046b1dc39662 100644 --- a/src/ui/dialog/attrdialog.cpp +++ b/src/ui/dialog/attrdialog.cpp @@ -412,6 +412,9 @@ void AttrDialog::setRepr(Inkscape::XML::Node * repr) bool show_content = is_text_or_comment_node(*_repr); _scrolledWindow.set_visible(!show_content); _content_sw->set_visible(show_content); + } else { + // if repr is null or none of the attributes selected, then hide popover + AttrDialog::valueCanceledPop(); } }