Skip to content

Commit

Permalink
fix for wxWidgets 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton van Wezenbeek authored and Anton van Wezenbeek committed Mar 25, 2018
1 parent 879f040 commit 162a4fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extension/src/stc-bind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ void wxExSTC::BindAll()
m_MarginTextClick = line;
}});

#if wxCHECK_VERSION(3,1,0)
Bind(wxEVT_STC_MARGIN_RIGHT_CLICK, [=](wxStyledTextEvent& event) {
#else
Bind(wxEVT_STC_MARGINCLICK, [=](wxStyledTextEvent& event) {
#endif
if (event.GetMargin() == m_MarginTextNumber)
{
wxMenu* menu = new wxMenu();
Expand Down

0 comments on commit 162a4fc

Please sign in to comment.