]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlwin.cpp
Add accelerator back to label in GetItemLabel
[wxWidgets.git] / src / html / htmlwin.cpp
index a8c739afebe43dc58a3199d977e3b6c5ffa7d98f..8ac31d319f9a20ab5790edfced86f9ff38279e5e 100644 (file)
@@ -1149,9 +1149,13 @@ void wxHtmlWindow::OnMouseUp(wxMouseEvent& event)
         ReleaseMouse();
         m_makingSelection = false;
 
-        // did the user move the mouse far enough from starting point?
-        if ( CopySelection(Primary) )
+        // if m_selection=NULL, the user didn't move the mouse far enough from
+        // starting point and the mouse up event is part of a click, the user
+        // is not selecting text:
+        if ( m_selection )
         {
+            CopySelection(Primary);
+
             // we don't want mouse up event that ended selecting to be
             // handled as mouse click and e.g. follow hyperlink:
             return;