mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-20 03:39: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()) {
|
if (!diagram_node.isNull()) {
|
||||||
QDomElement cloned_node = diagram_node.cloneNode(true).toElement();
|
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;
|
QPointF target_pos = final_pos;
|
||||||
if (m_preview_item) {
|
|
||||||
target_pos += m_preview_item->offset();
|
|
||||||
}
|
|
||||||
|
|
||||||
DiagramContent pasted_content;
|
DiagramContent pasted_content;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user