From: Vadim Zeitlin Date: Sun, 10 Apr 2011 15:36:00 +0000 (+0000) Subject: Fix off by one pixel error when drawing active tab in wxAUI. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4bd9bdf33baf3f26609f58ecdc990cc082301ce1 Fix off by one pixel error when drawing active tab in wxAUI. The active tab had a drawing artefact because its gradient background was drawn in a rectangle one pixel too short. See #11411. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 5e6ef680ed..0ba56c31cf 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -455,7 +455,7 @@ void wxAuiDefaultTabArt::DrawTab(wxDC& dc, // set rectangle down a bit for gradient drawing r.SetHeight(r.GetHeight()/2); r.x += 2; - r.width -= 2; + r.width -= 3; r.y += r.height; r.y -= 2;