From 47b6bebbdcf7dbb4a01286942b7b54aa4d9c8731 Mon Sep 17 00:00:00 2001 From: Benjamin Williams Date: Tue, 7 Nov 2006 13:10:32 +0000 Subject: [PATCH] clipping bug fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/auibook.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index b6e23ea1cd..d1a4585e2e 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -1624,6 +1624,10 @@ void wxAuiTabContainer::Render(wxDC* raw_dc, wxWindow* wnd) rect.x = offset; rect.width = m_rect.width - right_buttons_width - offset - 2; + if (rect.width <= 0) + break; + + m_art->DrawTab(dc, -- 2.45.2