cairo: Include command name in error messages.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 12 Jan 2013 17:43:18 +0000 (09:43 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 12 Jan 2013 17:43:18 +0000 (09:43 -0800)
Commit ddb7b52128d8 (output: Make errors, warnings, and notes into a new
"message_item".) changed command name tracking to a responsibility of
individual output drivers, and converted the output drivers to do it.
However, the conversion of the cairo driver was incomplete.  This commit
fixes that problem.

Reported by John Darrington.

src/output/cairo.c

index 89013c2a0c65f5c5b58f1ea53001f4ff0305e431..776f7f5de80ffa09af3d9f8d6592214d8a1f9127 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+   Copyright (C) 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -524,6 +524,8 @@ xr_submit (struct output_driver *driver, const struct output_item *output_item)
 {
   struct xr_driver *xr = xr_driver_cast (driver);
 
+  output_driver_track_current_command (output_item, &xr->command_name);
+
   xr_driver_output_item (xr, output_item);
   while (xr_driver_need_new_page (xr))
     {