use std::fixed when outputting bbox's to string

This commit is contained in:
Dane Springmeyer 2012-08-01 16:40:06 -07:00
parent 2351877cad
commit 6f15731c37
2 changed files with 2 additions and 1 deletions

View file

@ -123,6 +123,7 @@ protected:
double x, double y, double angle = 0.0);
void debug_draw_box(box2d<double> const& extent,
double x, double y, double angle = 0.0);
void draw_geo_extent(box2d<double> const& extent,mapnik::color const& color);
private:
buffer_type & pixmap_;

View file

@ -109,7 +109,7 @@ operator << (std::basic_ostream<charT,traits>& out,
std::basic_ostringstream<charT,traits> s;
s.copyfmt(out);
s.width(0);
s << "box2d(" << std::setprecision(16)
s << "box2d(" << std::fixed << std::setprecision(16)
<< e.minx() << ',' << e.miny() << ','
<< e.maxx() << ',' << e.maxy() << ')';
out << s.str();