aboutsummaryrefslogtreecommitdiff
path: root/src/tafwriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tafwriter.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tafwriter.cpp b/src/tafwriter.cpp
index fe29490..b5690fc 100644
--- a/src/tafwriter.cpp
+++ b/src/tafwriter.cpp
@@ -49,12 +49,16 @@ void Bu::TafWriter::writeGroup( const Bu::TafGroup *pRoot )
49void Bu::TafWriter::writeProperty( const Bu::TafProperty *pProp ) 49void Bu::TafWriter::writeProperty( const Bu::TafProperty *pProp )
50{ 50{
51 ident(); 51 ident();
52 writeString( pProp->getName() ); 52 if( pProp->getName().getStr() != NULL && pProp->getName() != "" )
53 if( pProp->getValue().getStr() != NULL )
54 { 53 {
54 writeString( pProp->getName() );
55 sOut.write("=", 1 ); 55 sOut.write("=", 1 );
56 writeString( pProp->getValue() ); 56 writeString( pProp->getValue() );
57 } 57 }
58 else
59 {
60 writeString( pProp->getValue() );
61 }
58 sOut.write("\n", 1 ); 62 sOut.write("\n", 1 );
59} 63}
60 64