From dfa9b113caecfbf27f86cc0413e853f2109dafda Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Mon, 27 May 2019 01:05:03 +0200 Subject: Add hide operand, work on groups and allow shapes as parameters in LPE Bool --- src/ui/clipboard.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/ui/clipboard.cpp') diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp index 4fbf2af62..f96fa607e 100644 --- a/src/ui/clipboard.cpp +++ b/src/ui/clipboard.cpp @@ -637,6 +637,16 @@ Glib::ustring ClipboardManagerImpl::getShapeOrTextObjectId(SPDesktop *desktop) if ( repr == nullptr ) { repr = sp_repr_lookup_name(root, "svg:text", -1); } + if (repr == nullptr) { + repr = sp_repr_lookup_name(root, "svg:ellipse", -1); + } + if (repr == nullptr) { + repr = sp_repr_lookup_name(root, "svg:rect", -1); + } + if (repr == nullptr) { + repr = sp_repr_lookup_name(root, "svg:circle", -1); + } + if ( repr == nullptr ) { _userWarn(desktop, _("Clipboard does not contain a path.")); -- cgit v1.2.3