]> Shamusworld >> Repos - architektonas/blobdiff - src/line.cpp
Fix for missing ampersand in QApplication.
[architektonas] / src / line.cpp
index 2459636024e8be411f17f6d8994c037b27ae7d68..0884d9028b3c9f4a9140abdf87582bf492eb7ee0 100644 (file)
@@ -360,6 +360,18 @@ about keeping track of old states...
                state = oldState;
 }
 
+// Check to see if the point passed in coincides with any we have. If so, return a
+// pointer to it; otherwise, return NULL.
+/*virtual*/ Vector * Line::GetPointAt(Vector v)
+{
+       if (v == position)
+               return &position;
+       else if (v == endpoint)
+               return &endpoint;
+
+       return 0;
+}
+
 #if 0
 void Line::SetDimensionOnPoint1(Dimension * dimension)
 {