From cd275246d352e01bdf3918454301ba118ae2523b Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 1 Jun 2003 11:19:13 +0000 Subject: [PATCH] fixed UpdateRenderingState to do what it was meant to git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/htmlcell.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index 2e2fa772d9..9a31271bc2 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -429,7 +429,7 @@ void wxHtmlContainerCell::UpdateRenderingStatePre(wxHtmlRenderingState& state, { 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); } @@ -440,9 +440,9 @@ void wxHtmlContainerCell::UpdateRenderingStatePost(wxHtmlRenderingState& state, { wxHtmlSelection *s = state.GetSelection(); if (!s) return; - if (s->GetFromCell() == this) + if (s->GetFromCell() == cell) state.SetSelectionState(wxHTML_SEL_IN); - else if (s->GetToCell() == this) + else if (s->GetToCell() == cell) state.SetSelectionState(wxHTML_SEL_OUT); } -- 2.45.2