Only write out txt.gz files if debug is enabled
This commit is contained in:
parent
3e068ed6dd
commit
771d65881e
1 changed files with 6 additions and 3 deletions
|
@ -1927,10 +1927,13 @@ void TGConstruct::WriteBtgFile( void )
|
|||
{
|
||||
throw sg_exception("error writing file. :-(");
|
||||
}
|
||||
result = obj.write_ascii( base, txtname, bucket );
|
||||
if ( !result )
|
||||
if (debug_all || debug_shapes.size())
|
||||
{
|
||||
throw sg_exception("error writing file. :-(");
|
||||
result = obj.write_ascii( base, txtname, bucket );
|
||||
if ( !result )
|
||||
{
|
||||
throw sg_exception("error writing file. :-(");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue