X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdrawingview.cpp;h=5bbcddf62ffeb0396b5f5edc5924e46ceaea9a5e;hb=89b8b0c60579d8ef0cf9a13521e7bf7c7864883f;hp=ab9f565fc2423bcb4f5a0c2b076eeaf63e64f500;hpb=86caae9cadd6e1877a4e6226533521ef0d1c6389;p=architektonas diff --git a/src/drawingview.cpp b/src/drawingview.cpp index ab9f565..5bbcddf 100644 --- a/src/drawingview.cpp +++ b/src/drawingview.cpp @@ -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);