From 7d4aaa8cdb667ac45d7a9277ed0bbb89b28d774d Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Thu, 20 Sep 2012 08:22:33 -0500 Subject: [PATCH] fmin() was giving grief to MSVC, switch to std::min() --- pcbnew/gen_drill_report_files.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/gen_drill_report_files.cpp b/pcbnew/gen_drill_report_files.cpp index 9151ee7b33..d334c48785 100644 --- a/pcbnew/gen_drill_report_files.cpp +++ b/pcbnew/gen_drill_report_files.cpp @@ -86,12 +86,12 @@ void GenDrillMapFile( BOARD* aPcb, FILE* aFile, const wxString& aFullFileName, int ypagesize_for_board = (int) (pageSizeIU.y * 0.6); double Yscale = (double)( ypagesize_for_board - margin ) / bbbox.GetHeight(); - scale = fmin( Xscale, Yscale ); + scale = std::min( Xscale, Yscale ); // Experience shows the scale should not to large, because texts // create problem (can be to big or too small). // So the scale is clipped at 3.0; - scale = fmin( scale, 3.0 ); + scale = std::min( scale, 3.0 ); offset.x = (int) ( (double) bbbox.Centre().x - ( pageSizeIU.x / 2.0 ) / scale ); offset.y = (int) ( (double) bbbox.Centre().y -