Fix debugging output error.
This commit is contained in:
parent
23aa8a468f
commit
75e7fabecb
1 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue