From ad0276119802e8f2617a75f64e5f694b37c69bfe Mon Sep 17 00:00:00 2001 From: Mateusz Piekos Date: Mon, 2 Jul 2012 13:48:32 +0200 Subject: Fixed bug with weird behavior of scene after clear diff --git a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp index 66db6db..5afc382 100644 --- a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp +++ b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp @@ -29,7 +29,9 @@ namespace Swift { scene = new QGraphicsScene(this); scene->setSceneRect(0, 0, 400, 400); -// scene->setItemIndexMethod(QGraphicsScene::NoIndex); + //BspTreeIndex is buggy, there are problems after removing items + //from scene + scene->setItemIndexMethod(QGraphicsScene::NoIndex); graphicsView = new GView(scene, this); graphicsView->setMode(GView::Line); -- cgit v0.10.2-6-g49f6