]> Shamusworld >> Repos - architektonas/blobdiff - src/drawingview.cpp
Fixed loading code, added "Base Unit" dialog.
[architektonas] / src / drawingview.cpp
index ab9f565fc2423bcb4f5a0c2b076eeaf63e64f500..5bbcddf62ffeb0396b5f5edc5924e46ceaea9a5e 100644 (file)
@@ -369,7 +369,13 @@ void DrawingView::mousePressEvent(QMouseEvent * event)
                Vector point = Painter::QtToCartesianCoords(Vector(event->x(), event->y()));
 
 // Problem with this: Can't select stuff very well with the snap grid on.
-// Completely screws things up.
+// Completely screws things up, as sometimes things don't fall on the grid.
+/*
+So, how to fix this? Have the Object check itself?
+Maybe we can fix this by having the initial point not be snapped, but when there's
+a drag, we substitute the snapped point 'oldPoint' which the Object keeps track of
+internally to know how far it was dragged...
+*/
                if (Object::snapToGrid)
                        point = SnapPointToGrid(point);