From: Václav Slavík Date: Sun, 2 Sep 2001 20:07:13 +0000 (+0000) Subject: comment clarification X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d168485fcfaa772a9573a51a461c0209753fe971?ds=inline comment clarification git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 1eb0d2a166..d80cb51617 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -636,13 +636,6 @@ void wxHtmlWindow::OnDraw(wxDC& dc) if (m_tmpCanDrawLocks > 0) return; dc.SetMapMode(wxMM_TEXT); -#if 0 -/* VS - I don't think this is neccessary any longer - MSC_VER 1200 means MSVC 6.0 and it works fine */ -#if defined(_MSC_VER) && (_MSC_VER == 1200) - ::SetMapMode((HDC)dc.GetHDC(), MM_TEXT); -#endif -#endif dc.SetBackgroundMode(wxTRANSPARENT); GetViewStart(&x, &y); @@ -686,6 +679,8 @@ void wxHtmlWindow::OnMouseEvent(wxMouseEvent& event) wxHtmlCell *cell = m_Cell->FindCellByPos(pos.x, pos.y); // VZ: is it possible that we don't find anything at all? + // VS: yes. FindCellByPos returns terminal cell and + // containers may have empty borders if ( cell ) OnCellClicked(cell, pos.x, pos.y, event); }