X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ace0fab4f1207124c8d3e4fcf552e596ff9dc470..ffafd8a55bb0b8fb4236e4522792a6b143813609:/src/html/htmlcell.cpp diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index 4f71ab0fdf..c62a65ace0 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -7,7 +7,7 @@ // Licence: wxWindows Licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "htmlcell.h" #endif @@ -62,20 +62,22 @@ void wxHtmlSelection::Set(const wxHtmlCell *fromCell, const wxHtmlCell *toCell) wxPoint p2 = toCell ? toCell->GetAbsPos() : wxDefaultPosition; if ( toCell ) { - p2.x += toCell->GetWidth()-1; - p2.y += toCell->GetHeight()-1; + p2.x += toCell->GetWidth(); + p2.y += toCell->GetHeight(); } Set(p1, fromCell, p2, toCell); } -wxColour wxDefaultHtmlRenderingStyle::GetSelectedTextColour( - const wxColour& clr) +wxColour +wxDefaultHtmlRenderingStyle:: +GetSelectedTextColour(const wxColour& WXUNUSED(clr)) { return wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT); } -wxColour wxDefaultHtmlRenderingStyle::GetSelectedTextBgColour( - const wxColour& WXUNUSED(clr)) +wxColour +wxDefaultHtmlRenderingStyle:: +GetSelectedTextBgColour(const wxColour& WXUNUSED(clr)) { return wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT); } @@ -750,7 +752,6 @@ void wxHtmlContainerCell::Layout(int w) ypos + line->GetPosY()); line = line->GetNext(); } - xcnt++; } ypos += ysizedown; @@ -966,11 +967,9 @@ const wxHtmlCell* wxHtmlContainerCell::Find(int condition, const void* param) co { if (m_Cells) { - const wxHtmlCell *r = NULL; - for (wxHtmlCell *cell = m_Cells; cell; cell = cell->GetNext()) { - r = cell->Find(condition, param); + const wxHtmlCell *r = cell->Find(condition, param); if (r) return r; } }