Don't use std::min(), it's not available everywhere.
Fix compilation using Sun CC under Solaris. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user