SEGFAULT Fix

- when deleting a Scene_edit_polyhedron_item WHILE manipulating a frame, a segfault
occured because a bad manipulated frame was sent to the viewer. Calling setVisible(false)
 in the destructor of the item calls setManipulatedFrame(NULL) and fixex the problem.
This commit is contained in:
Maxime Gimeno 2015-07-30 12:24:10 +02:00
parent ed4663ace5
commit 33e35f5d44
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ Scene_edit_polyhedron_item::Scene_edit_polyhedron_item
Scene_edit_polyhedron_item::~Scene_edit_polyhedron_item()
{
setVisible(false);
while(is_there_any_ctrl_vertices_group())
{
delete_ctrl_vertices_group(false);