summaryrefslogtreecommitdiffstats
path: root/src/ui/clipboard.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2019-05-27 10:49:08 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2019-05-27 10:49:08 +0000
commit2998240db89caabd4c5766f7f57b9a13241f7dc9 (patch)
treef7dc546316eaa36a36a795bc073d955d77762ed7 /src/ui/clipboard.cpp
parentHackfest2019: Rm tautological tests (diff)
parentmerged in master (diff)
downloadinkscape-2998240db89caabd4c5766f7f57b9a13241f7dc9.tar.gz
inkscape-2998240db89caabd4c5766f7f57b9a13241f7dc9.zip
Hackfest2019: Rm tautological tests
Diffstat (limited to 'src/ui/clipboard.cpp')
-rw-r--r--src/ui/clipboard.cpp10
1 files changed, 10 insertions, 0 deletions
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."));