Skip to content

Commit

Permalink
[ui] DelegateSelectionBox: Updated selection to refer to the actual i…
Browse files Browse the repository at this point in the history
…tem rather than the loader delegate
  • Loading branch information
waaake committed Jan 2, 2025
1 parent 2532de4 commit e54d1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshroom/ui/qml/Controls/DelegateSelectionBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SelectionBox {
let selectedIndices = [];
const mappedSelectionRect = mapToItem(container, selectionRect);
for (var i = 0; i < modelInstantiator.count; ++i) {
const delegate = modelInstantiator.itemAt(i);
const delegate = modelInstantiator.getItemAt(i);
const delegateRect = Qt.rect(delegate.x, delegate.y, delegate.width, delegate.height);
if (Geom2D.rectRectIntersect(mappedSelectionRect, delegateRect)) {
selectedIndices.push(i);
Expand Down

0 comments on commit e54d1a1

Please sign in to comment.