X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47d67540a017101b3e46abe9ef0f55914d8de37e..31811e1acaf3dd16403b94f5ff93c41e4e4ca9bb:/utils/ogl/src/canvas.cpp diff --git a/utils/ogl/src/canvas.cpp b/utils/ogl/src/canvas.cpp index 39f91a3420..9d37801bf3 100644 --- a/utils/ogl/src/canvas.cpp +++ b/utils/ogl/src/canvas.cpp @@ -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;