1
0
Fork 0

Only write out txt.gz files if debug is enabled

This commit is contained in:
Christian Schmitt 2012-09-03 22:27:38 +02:00
parent 3e068ed6dd
commit 771d65881e

View file

@ -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. :-(");
}
}
}