diff --git a/sources/undocommand/linkelementcommand.cpp b/sources/undocommand/linkelementcommand.cpp index 8b361fc88..1a56fb981 100644 --- a/sources/undocommand/linkelementcommand.cpp +++ b/sources/undocommand/linkelementcommand.cpp @@ -285,6 +285,10 @@ void LinkElementCommand::makeLink(const QList &element_list) //All elements stored in to_unlink is unwanted we unlink it from m_element if (!to_unlink.isEmpty()) + { foreach(Element *elmt, to_unlink) + { m_element->unlinkElement(elmt); + } + } }