]> Shamusworld >> Repos - architektonas/blobdiff - src/dimension.cpp
Trim tool now works for Lines, but inaccurate.
[architektonas] / src / dimension.cpp
index 01d7ec3d9d1e601f6312b8172b977ba92539bc3e..675afaff89c7c7a3cef7e4f98df0233a51fcaa91 100644 (file)
@@ -243,7 +243,7 @@ I believe they are pixels.
 }
 
 
-/*virtual*/ void Dimension::PointerMoved(Vector point)
+/*virtual*/ bool Dimension::PointerMoved(Vector point)
 {
        if (selectionInProgress)
        {
@@ -254,13 +254,13 @@ I believe they are pixels.
                else
                        state = OSInactive;
 
-               return;
+               return false;
        }
 
        // Hit test tells us what we hit (if anything) through boolean variables. (It
        // also tells us whether or not the state changed. --not any more)
        SaveHitState();
-       HitTest(point);
+       bool hovered = HitTest(point);
        needUpdate = HitStateChanged();
 
        objectWasDragged = (/*draggingLine |*/ draggingHandle1 | draggingHandle2);
@@ -278,6 +278,8 @@ I believe they are pixels.
                oldPoint = point;
                needUpdate = true;
        }
+
+       return hovered;
 }