SpreadLevel Plot: Don't try to take the logarithm of a negative
[pspp] / src / output / cairo.c
index 57c27ddc23c7c9c7536e9d4199db409da86122a4..bcb995c68c587ee2116d6b86458e9ecfc3b1e8f8 100644 (file)
@@ -433,7 +433,7 @@ parse_color__ (const char *s, struct cell_color *color)
     }
 
   /* rgb(r,g,b) */
-  if (sscanf (s, "rgb (%"SCNi8" , %"SCNi8" , %"SCNi8" ) %n",
+  if (sscanf (s, "rgb (%"SCNi8" , %"SCNi8" , %"SCNi8") %n",
               &r, &g, &b, &len) == 3
       && !s[len])
     {
@@ -444,7 +444,7 @@ parse_color__ (const char *s, struct cell_color *color)
     }
 
   /* rgba(r,g,b,a), ignoring a. */
-  if (sscanf (s, "rgba (%"SCNi8" , %"SCNi8" , %"SCNi8", %*f ) %n",
+  if (sscanf (s, "rgba (%"SCNi8" , %"SCNi8" , %"SCNi8", %*f) %n",
               &r, &g, &b, &len) == 3
       && !s[len])
     {
@@ -889,9 +889,9 @@ xr_destroy (struct output_driver *driver)
       cairo_surface_finish (xr->surface);
       cairo_status_t status = cairo_status (xr->cairo);
       if (status != CAIRO_STATUS_SUCCESS)
-        msg (ME, _("error drawing output for %s driver: %s"),
-               output_driver_get_name (driver),
-               cairo_status_to_string (status));
+        fprintf (stderr,  _("error drawing output for %s driver: %s"),
+                 output_driver_get_name (driver),
+                 cairo_status_to_string (status));
       cairo_surface_destroy (xr->surface);
 
       cairo_destroy (xr->cairo);