From 68ba0ceea79bcaa9b6a699157ea45e3da745d4d0 Mon Sep 17 00:00:00 2001 From: abd Date: Thu, 4 Sep 2008 13:53:04 +0000 Subject: [PATCH] Porting functionality on Win32 Platform --- src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx index fc3787b9e..77ea25588 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx @@ -45,6 +45,10 @@ #include #endif +#ifdef WIN32 +# include +#endif + StdMeshersGUI_DistrPreview::StdMeshersGUI_DistrPreview( QWidget* p, StdMeshers::StdMeshers_NumberOfSegments_ptr h ) : QwtPlot( p ), myPoints( 50 ), @@ -263,7 +267,15 @@ void StdMeshersGUI_DistrPreview::update() } setAxisScale( myDensity->xAxis(), min_x, max_x ); - setAxisScale( myDensity->yAxis(), std::min( 0.0, min_y ), std::max( 0.0, max_y ) ); + setAxisScale( myDensity->yAxis(), +#ifdef WIN32 + min( 0.0, min_y ), + max( 0.0, max_y ) +#else + std::min( 0.0, min_y ), + std::max( 0.0, max_y ) +#endif + ); myDensity->setData( x, y, size ); if( x ) delete[] x; -- 2.39.2