fix movement of element, when origin is outside of graphics

When saving an element it is checked, if the origin (0/0)
is inside the graphical parts. If outside, the element is
moved by integer values for x- and y-offset before saving.
Old calculation for offset could lead to "strange" new
values for positions.

Additionally: fix typos and English comments
This commit is contained in:
plc-user
2025-02-11 11:46:36 +01:00
parent 29aee8e80c
commit 4808b04a31
2 changed files with 11 additions and 18 deletions

View File

@@ -151,7 +151,7 @@ class ElementScene : public QGraphicsScene
void initPasteArea();
static bool zValueLessThan(QGraphicsItem *, QGraphicsItem *);
QMutex *m_decorator_lock;
void centerElementToOrigine();
void centerElementToOrigin();
public slots:
void slot_select(const ElementContent &);