mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
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:
@@ -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 &);
|
||||
|
||||
Reference in New Issue
Block a user