Skip to content

Commit 53a11d8

Browse files
committed
Fix crash when instant erasing a new item
1 parent 896ffb6 commit 53a11d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Polyhedron/demo/Polyhedron/Scene_item.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void CGAL::Three::Scene_item::selection_changed(bool b)
181181
setSelected(true);
182182
d->was_selected = true;
183183
redraw();
184-
QTimer::singleShot(500, [this]{setSelected(false); redraw();});
184+
QTimer::singleShot(500, this, [this]{setSelected(false); redraw();});
185185
}
186186
else{
187187
if(!b)

0 commit comments

Comments
 (0)