X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/28dd9a9d035b5435897d626d1b57b4308daa0371..841088129481b7bd5b4ab91c1a6a0886b6c1b4f1:/src/generic/hyperlinkg.cpp?ds=sidebyside diff --git a/src/generic/hyperlinkg.cpp b/src/generic/hyperlinkg.cpp index 07b9b2468f..4e81ddad9f 100644 --- a/src/generic/hyperlinkg.cpp +++ b/src/generic/hyperlinkg.cpp @@ -195,7 +195,7 @@ void wxGenericHyperlinkCtrl::OnLeftDown(wxMouseEvent& event) void wxGenericHyperlinkCtrl::OnLeftUp(wxMouseEvent& event) { // the click must be started and ended in the hyperlink rect - if (!m_clicking || !GetLabelRect().Contains(event.GetPosition())) + if (!m_clicking || !GetLabelRect().Contains(event.GetPosition())) return; SetForegroundColour(m_visitedColour);