Pie Charts: White Background for Print and Image Export Bug Number: n/a Release notes (y/n): y For Release Nums: 6.5 When printing and exporting the Chart dialog's image, the dialog's background is temporarily set to white. Previously exported and printed images had a grey background (as seen onscreen). See samples -- before and after: http://cadswes2.colorado.edu/~philw/2013/PieChart/WhiteBg/chartExport64.png http://cadswes2.colorado.edu/~philw/2013/PieChart/WhiteBg/chartExportWhite.png http://cadswes2.colorado.edu/~philw/2013/PieChart/WhiteBg/StoragePieChart64.pdf http://cadswes2.colorado.edu/~philw/2013/PieChart/WhiteBg/StoragePieChartWhite.pdf Changes which support white backgrounds for image export and printing are in these methods: (1) void ChartDlg::exportImageHandler() (2) void ChartDlg::printImageHandler() The background substitution is currently unconditional, based on these compile-time constants. These could be changed to dynamic flags if we ever want to make this conditional: (1) static const bool EXPORT_WITH_WHITE_BACKGROUND (true); (2) static const bool PRINT_WITH_WHITE_BACKGROUND (true); Some minor fixes were also applied (in the course of Phil's work to support Pie Charts in Model Reports). (1) The Date/Time label was inconsistently formatted. A zero reference timestep size was being used when the chart's reference date/time was active (instead of the date/time from a conditionally shown timestep spinner). (2) The ChartConfigDlg had an exit crash involving slot callback deletions. ... NOTE: ChartDlg still has this sort of CRASH (exiting RiverWare when a ChartDlg is open). Several new methods to support Pie Charts in Model Reports are also being committed: (1) QPixmap ChartDlg::renderChart (const QSize& renderSize, const Date_Time* dateTimeOverride /*=NULL*/) (2) SlotColRef ChartDevice::firstSeriesSlotColRef() const; (3) QString ChartDevice::getDateTimeStr() const; ---