mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-04 05:09:58 +02:00
Fix placing Template
This commit is contained in:
@@ -245,10 +245,9 @@ void DiagramEventAddMacro::addMacro(QPointF final_pos)
|
||||
if (!diagram_node.isNull()) {
|
||||
QDomElement cloned_node = diagram_node.cloneNode(true).toElement();
|
||||
|
||||
// Die fehlerhafte Offset-Addition wurde hier entfernt.
|
||||
// target_pos ist einfach nur die Raster-Mausposition.
|
||||
QPointF target_pos = final_pos;
|
||||
if (m_preview_item) {
|
||||
target_pos += m_preview_item->offset();
|
||||
}
|
||||
|
||||
DiagramContent pasted_content;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user