Author: abrander
Date: 2010-04-01 22:09:50 +0200 (Thu, 01 Apr 2010)
New Revision: 3301

Modified:
   trunk/src/rs-preview-widget.c
Log:
More libc fixes.

Modified: trunk/src/rs-preview-widget.c
===================================================================
--- trunk/src/rs-preview-widget.c       2010-04-01 20:09:21 UTC (rev 3300)
+++ trunk/src/rs-preview-widget.c       2010-04-01 20:09:50 UTC (rev 3301)
@@ -18,6 +18,7 @@
  */
 
 #include <rawstudio.h>
+#include <math.h>
 #include "rs-preview-widget.h"
 #include "application.h"
 #include "gtk-interface.h"
@@ -2383,8 +2384,8 @@
 static void
 crop_find_size_from_aspect(RS_RECT *roi, gdouble aspect, CROP_NEAR near)
 {
-       const gdouble original_w = (gdouble) abs(roi->x2 - roi->x1 + 1);
-       const gdouble original_h = (gdouble) abs(roi->y2 - roi->y1 + 1);
+       const gdouble original_w = (gdouble) ABS(roi->x2 - roi->x1 + 1);
+       const gdouble original_h = (gdouble) ABS(roi->y2 - roi->y1 + 1);
        gdouble corrected_w, corrected_h;
        gdouble original_aspect = original_w/original_h;
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to