Skip to content

Commit

Permalink
update viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed Feb 20, 2015
1 parent 7031099 commit c5c5fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/viewer/mapwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ void render_agg(mapnik::Map const& map, double scaling_factor, QPixmap & pix)
{
mapnik::auto_cpu_timer t(std::clog, "rendering took: ");
ren.apply();
QImage image((uchar*)buf.raw_data(),width,height,QImage::Format_ARGB32);
QImage image((uchar*)buf.getData(),width,height,QImage::Format_ARGB32);
pix = QPixmap::fromImage(image.rgbSwapped());
}
//catch (mapnik::config_error & ex)
Expand Down

0 comments on commit c5c5fc9

Please sign in to comment.