aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tafreader.cpp2
-rw-r--r--src/tafwriter.cpp8
2 files changed, 7 insertions, 3 deletions
diff --git a/src/tafreader.cpp b/src/tafreader.cpp
index 0d28cd0..6441ac3 100644
--- a/src/tafreader.cpp
+++ b/src/tafreader.cpp
@@ -63,7 +63,7 @@ Bu::TafProperty *Bu::TafReader::readProperty()
63 if( c != '=' ) 63 if( c != '=' )
64 { 64 {
65 //printf(" %s (true)\n", sName.getStr() ); 65 //printf(" %s (true)\n", sName.getStr() );
66 return new Bu::TafProperty( sName, "" ); 66 return new Bu::TafProperty( "", sName );
67 } 67 }
68 next(); 68 next();
69 FString sValue = readStr(); 69 FString sValue = readStr();
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