]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/Color.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / Color.C
index bbf9d5708752df19c5f5c5ba6c62e22cd03bfaca..72197c07232824ef93cb8fb852d8843cd0913e77 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \file Color.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming, a.leeming@ic.ac.uk
+ * \author Angus Leeming 
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 #include <cmath> // floor
 #include FORMS_H_LOCATION
 
+#ifndef CXX_GLOBAL_CSTD
+using std::floor;
+#endif
+
 using std::max;
 using std::min;
 
@@ -99,8 +105,8 @@ HSVColor::HSVColor(RGBColor const & rgb)
        double const g = rgb.g / 255.0;
        double const b = rgb.b / 255.0;
 
-       double const maxval = max( max( r, g), b);
-       double const minval = min( min( r, g), b);
+       double const maxval = max(max(r, g), b);
+       double const minval = min(min(r, g), b);
 
        v = maxval;