mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
Bug fix: qet crash when move item with arrow keys
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3385 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -76,9 +76,11 @@ int ElementsMover::beginMovement(Diagram *diagram, QGraphicsItem *driver_item) {
|
||||
|
||||
moved_content_ = diagram -> selectedContent();
|
||||
|
||||
if (driver_item -> parentItem()) {
|
||||
if (moved_content_.items().contains(driver_item -> parentItem()))
|
||||
moved_content_.clear();
|
||||
if (driver_item) {
|
||||
if (driver_item -> parentItem()) {
|
||||
if (moved_content_.items().contains(driver_item -> parentItem()))
|
||||
moved_content_.clear();
|
||||
}
|
||||
}
|
||||
|
||||
/* We need to save the position of conductor text (ConductorTextItem)
|
||||
|
||||
Reference in New Issue
Block a user