fix init order

This commit is contained in:
Artem Pavlenko 2012-01-17 17:58:00 -05:00
parent 92b13c78db
commit 399b309da5

View file

@ -55,6 +55,7 @@ gdal_featureset::gdal_featureset(GDALDataset& dataset,
double dy, double dy,
double filter_factor) double filter_factor)
: dataset_(dataset), : dataset_(dataset),
ctx_(boost::make_shared<mapnik::context>()),
band_(band), band_(band),
gquery_(q), gquery_(q),
raster_extent_(extent), raster_extent_(extent),
@ -64,8 +65,7 @@ gdal_featureset::gdal_featureset(GDALDataset& dataset,
dy_(dy), dy_(dy),
nbands_(nbands), nbands_(nbands),
filter_factor_(filter_factor), filter_factor_(filter_factor),
first_(true), first_(true)
ctx_(boost::make_shared<mapnik::context>())
{ {
ctx_->push("NODATA"); ctx_->push("NODATA");
} }