]> Shamusworld >> Repos - architektonas/blobdiff - src/line.cpp
Trim tool now works for Lines, but inaccurate.
[architektonas] / src / line.cpp
index efd92e50900088804ef25b9ee6eed570ea8a7f4e..46a6d85860c8d598b8f76497f9ea4ace005bb20d 100644 (file)
@@ -299,7 +299,7 @@ a dimension only) Draw() function... :-/
 }
 
 
-/*virtual*/ void Line::PointerMoved(Vector point)
+/*virtual*/ bool Line::PointerMoved(Vector point)
 {
        if (selectionInProgress)
        {
@@ -310,13 +310,13 @@ a dimension only) Draw() function... :-/
                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);
@@ -416,6 +416,8 @@ the horizontal line or vertical line that intersects from the current mouse posi
                        dimPoint2->SetPoint2(draggingHandle2 ? v2 : endpoint);
 #endif
        }
+
+       return hovered;
 }