[Kstars-devel] branches/kstars/summer/kstars/kstars/comast

Prakash Mohan prak902000 at gmail.com
Tue Aug 11 06:26:19 CEST 2009


SVN commit 1009877 by prakash:

Removing spaces from the id field of the targets.

CCMAIL: kstars-devel at kde.org


 M  +2 -2      log.cpp  


--- branches/kstars/summer/kstars/kstars/comast/log.cpp #1009876:1009877
@@ -129,7 +129,7 @@
 
 void Comast::Log::writeTarget( SkyObject *o ) {
     writer->writeStartElement( "target" );
-    writer->writeAttribute("id", o->name() );
+    writer->writeAttribute("id", o->name().remove( ' ' ) );
     QString typeString;
     if( native )
         writer->writeAttribute( "type", o->typeName() );
@@ -319,7 +319,7 @@
     writer->writeCharacters( o->session() );
     writer->writeEndElement();
     writer->writeStartElement( "target" );
-    writer->writeCharacters( o->target() );
+    writer->writeCharacters( o->target().remove( ' ' ) );
     writer->writeEndElement();
     writer->writeStartElement( "begin" );
     writer->writeCharacters( o->begin().date().toString( "yyyy-MM-dd" ) + "T" + o->begin().time().toString( "hh:mm:ss" ) );


More information about the Kstars-devel mailing list