X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e30d94eff7dca642729cb2f557650e8f2ebc61f..3e5f88c6d2cdb2d4b0de4f44146a9839dc55f129:/src/aui/tabartgtk.cpp?ds=sidebyside diff --git a/src/aui/tabartgtk.cpp b/src/aui/tabartgtk.cpp index e57ca3dd3f..357c71aa23 100644 --- a/src/aui/tabartgtk.cpp +++ b/src/aui/tabartgtk.cpp @@ -383,7 +383,8 @@ void wxAuiGtkTabArt::DrawTab(wxDC& dc, wxWindow* wnd, const wxAuiNotebookPage& p *out_button_rect = DrawCloseButton(dc, widget, close_button_state, rect, wxRIGHT, &area); } - tab_rect.width = std::min(tab_rect.width, clip_width); + if ( clip_width < tab_rect.width ) + tab_rect.width = clip_width; *out_tab_rect = tab_rect; dc.DestroyClippingRegion();