From 103d838eff0f988d185d3939dd710b942d88cec1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin <vadim@wxwidgets.org> Date: Wed, 24 Oct 2012 00:25:31 +0000 Subject: [PATCH] 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 --- src/aui/tabartgtk.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.45.2