Scaled bitmap and selection click fixes

This commit is contained in:
JulianSmart
2016-06-30 20:16:43 +01:00
parent ffcdcc1617
commit 511923a974
2 changed files with 17 additions and 12 deletions

View File

@@ -738,7 +738,9 @@ void wxRichTextCtrl::OnLeftUp(wxMouseEvent& event)
}
#endif
if ((hit != wxRICHTEXT_HITTEST_NONE) && !(hit & wxRICHTEXT_HITTEST_OUTSIDE))
// Don't process left click if there was a selection, which implies that a selection may just have been
// extended
if ((hit != wxRICHTEXT_HITTEST_NONE) && !(hit & wxRICHTEXT_HITTEST_OUTSIDE) && !HasSelection())
{
wxRichTextEvent cmdEvent(
wxEVT_RICHTEXT_LEFT_CLICK,