Fix debugging output error.
This commit is contained in:
parent
23aa8a468f
commit
75e7fabecb
1 changed files with 3 additions and 1 deletions
|
@ -273,8 +273,10 @@ void TGPolygon::shift( double lon, double lat ) {
|
|||
// output
|
||||
void TGPolygon::write( const string& file ) const {
|
||||
FILE *fp = fopen( file.c_str(), "w" );
|
||||
|
||||
|
||||
fprintf(fp, "%d\n", poly.size());
|
||||
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 ) {
|
||||
fprintf(fp, "%.6f %.6f\n", poly[i][j].x(), poly[i][j].y());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue