]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed UpdateRenderingState to do what it was meant to
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 1 Jun 2003 11:19:13 +0000 (11:19 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 1 Jun 2003 11:19:13 +0000 (11:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlcell.cpp

index 2e2fa772d9db080e52140e010baa3516ec2eef0b..9a31271bc247612fc495fde6b8391b16c2322b0e 100644 (file)
@@ -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);
 }