git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20792
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxHtmlSelection *s = state.GetSelection();
if (!s) return;
{
wxHtmlSelection *s = state.GetSelection();
if (!s) return;
- if (s->GetFromCell() == this || s->GetToCell() == this)
+ if (s->GetFromCell() == cell || s->GetToCell() == cell)
{
state.SetSelectionState(wxHTML_SEL_CHANGING);
}
{
state.SetSelectionState(wxHTML_SEL_CHANGING);
}
{
wxHtmlSelection *s = state.GetSelection();
if (!s) return;
{
wxHtmlSelection *s = state.GetSelection();
if (!s) return;
- if (s->GetFromCell() == this)
+ if (s->GetFromCell() == cell)
state.SetSelectionState(wxHTML_SEL_IN);
state.SetSelectionState(wxHTML_SEL_IN);
- else if (s->GetToCell() == this)
+ else if (s->GetToCell() == cell)
state.SetSelectionState(wxHTML_SEL_OUT);
}
state.SetSelectionState(wxHTML_SEL_OUT);
}