1
0
Fork 0

Fix debugging output error.

This commit is contained in:
curt 2005-09-28 17:24:09 +00:00
parent 23aa8a468f
commit 75e7fabecb

View file

@ -274,7 +274,9 @@ void TGPolygon::shift( double lon, double lat ) {
void TGPolygon::write( const string& file ) const { void TGPolygon::write( const string& file ) const {
FILE *fp = fopen( file.c_str(), "w" ); FILE *fp = fopen( file.c_str(), "w" );
fprintf(fp, "%d\n", poly.size());
for ( int i = 0; i < (int)poly.size(); ++i ) { for ( int i = 0; i < (int)poly.size(); ++i ) {
fprintf(fp, "%d\n", poly[i].size());
for ( int j = 0; j < (int)poly[i].size(); ++j ) { for ( int j = 0; j < (int)poly[i].size(); ++j ) {
fprintf(fp, "%.6f %.6f\n", poly[i][j].x(), poly[i][j].y()); fprintf(fp, "%.6f %.6f\n", poly[i][j].x(), poly[i][j].y());
} }