mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Minor fix: conductor text don't move with element.
When move two elements connected by a conductor, the conductor text don't follow the movement when he is previously moved by the user.
This commit is contained in:
@@ -101,8 +101,10 @@ DiagramContent::DiagramContent(Diagram *diagram, bool selected) :
|
||||
other_terminal = conductor->terminal1;
|
||||
|
||||
//If the two elements of conductor are movable
|
||||
if (m_elements.contains(other_terminal -> parentElement()) && !m_conductors_to_move.contains(conductor))
|
||||
m_conductors_to_move << conductor;
|
||||
if (m_elements.contains(other_terminal -> parentElement())) {
|
||||
if (!m_conductors_to_move.contains(conductor))
|
||||
m_conductors_to_move << conductor;
|
||||
}
|
||||
else if (!m_conductors_to_update.contains(conductor))
|
||||
m_conductors_to_update << conductor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user