mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-08 04:44:13 +02:00
Merge pull request #1388 from bhangart/fix/part-rotation-init
Initialise the rotation of a new line and polygon in the element editor
This commit is contained in:
@@ -127,6 +127,6 @@ class PartLine : public CustomElementGraphicPart
|
||||
int m_vector_index = -1;
|
||||
QPropertyUndoCommand *m_undo_command;
|
||||
QVector<QetGraphicsHandlerItem *> m_handler_vector;
|
||||
qreal m_rot;
|
||||
qreal m_rot = 0;
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -119,6 +119,6 @@ class PartPolygon : public CustomElementGraphicPart
|
||||
QAction *m_insert_point,
|
||||
*m_remove_point;
|
||||
QPointF m_context_menu_pos;
|
||||
qreal m_rot;
|
||||
qreal m_rot = 0;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user