]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/ogl/src/canvas.cpp
"unsigned char" restored in wxColour ctor
[wxWidgets.git] / utils / ogl / src / canvas.cpp
index d0ca4ee7c84f655a5d1e7cdf9c15c510e1fb06c2..9d37801bf31f5c318a5ef1de66fd24dd579d625c 100644 (file)
@@ -28,7 +28,7 @@
 #include <wx/wxexpr.h>
 #endif
 
-#if USE_IOSTREAMH
+#if wxUSE_IOSTREAMH
 #include <iostream.h>
 #else
 #include <iostream>
@@ -275,6 +275,13 @@ void wxShapeCanvas::OnMouseEvent(wxMouseEvent& event)
         m_draggedShape = NULL;
         m_dragState = NoDragging;
       }
+      else if (event.LeftDClick())
+      {
+        nearest_object->GetEventHandler()->OnLeftDoubleClick((double)x, (double)y, keys, attachment);
+
+        m_draggedShape = NULL;
+        m_dragState = NoDragging;
+      }
       else if (event.RightDown())
       {
         m_draggedShape = nearest_object;