X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42cfaf8cd4464466398ed888cb2caa5ee360c7ef..31811e1acaf3dd16403b94f5ff93c41e4e4ca9bb:/utils/ogl/src/canvas.cpp diff --git a/utils/ogl/src/canvas.cpp b/utils/ogl/src/canvas.cpp index d0ca4ee7c8..9d37801bf3 100644 --- a/utils/ogl/src/canvas.cpp +++ b/utils/ogl/src/canvas.cpp @@ -28,7 +28,7 @@ #include #endif -#if USE_IOSTREAMH +#if wxUSE_IOSTREAMH #include #else #include @@ -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;