Fixes to speed select/deselect commit (161045f1
)
Deselecting items require full refresh, as otherwise e.g. umbilical lines for modules stays.
This commit is contained in:
parent
71c33d3dcd
commit
3570154ef0
|
@ -1516,7 +1516,6 @@ void SELECTION_TOOL::selectVisually( BOARD_ITEM* aItem )
|
||||||
// Hide the original item, so it is shown only on overlay
|
// Hide the original item, so it is shown only on overlay
|
||||||
aItem->SetSelected();
|
aItem->SetSelected();
|
||||||
view()->Hide( aItem, true );
|
view()->Hide( aItem, true );
|
||||||
view()->Update( aItem, KIGFX::COLOR );
|
|
||||||
|
|
||||||
// Modules are treated in a special way - when they are selected, we have to
|
// Modules are treated in a special way - when they are selected, we have to
|
||||||
// unselect all the parts that make the module, not the module itself
|
// unselect all the parts that make the module, not the module itself
|
||||||
|
@ -1527,7 +1526,6 @@ void SELECTION_TOOL::selectVisually( BOARD_ITEM* aItem )
|
||||||
{
|
{
|
||||||
item->SetSelected();
|
item->SetSelected();
|
||||||
view()->Hide( item, true );
|
view()->Hide( item, true );
|
||||||
view()->Update( item, KIGFX::COLOR );
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1540,7 +1538,7 @@ void SELECTION_TOOL::unselectVisually( BOARD_ITEM* aItem )
|
||||||
// Restore original item visibility
|
// Restore original item visibility
|
||||||
aItem->ClearSelected();
|
aItem->ClearSelected();
|
||||||
view()->Hide( aItem, false );
|
view()->Hide( aItem, false );
|
||||||
view()->Update( aItem, KIGFX::COLOR );
|
view()->Update( aItem );
|
||||||
|
|
||||||
// Modules are treated in a special way - when they are selected, we have to
|
// Modules are treated in a special way - when they are selected, we have to
|
||||||
// unselect all the parts that make the module, not the module itself
|
// unselect all the parts that make the module, not the module itself
|
||||||
|
@ -1551,7 +1549,7 @@ void SELECTION_TOOL::unselectVisually( BOARD_ITEM* aItem )
|
||||||
{
|
{
|
||||||
item->ClearSelected();
|
item->ClearSelected();
|
||||||
view()->Hide( item, false );
|
view()->Hide( item, false );
|
||||||
view()->Update( item, KIGFX::COLOR );
|
view()->Update( item );
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue