[Marble-commits] KDE/kdeedu/marble/src/lib/geodata/writers/kml
Dennis Nienhüser
earthwings at gentoo.org
Sun Oct 10 09:38:51 CEST 2010
SVN commit 1184352 by nienhueser:
fix order
M +2 -1 KmlDocumentTagWriter.cpp
M +3 -3 KmlLineStyleTagWriter.cpp
--- trunk/KDE/kdeedu/marble/src/lib/geodata/writers/kml/KmlDocumentTagWriter.cpp #1184351:1184352
@@ -34,6 +34,8 @@
{
const GeoDataDocument &document = static_cast<const GeoDataDocument&>(node);
+ writer.writeStartElement( kml::kmlTag_Document );
+
foreach( const GeoDataStyle &style, document.styles() ) {
writeElement( style, writer );
}
@@ -41,7 +43,6 @@
writeElement( map, writer );
}
- writer.writeStartElement( kml::kmlTag_Document );
writer.writeOptionalElement( "name", document.name() );
writer.writeOptionalElement( "address", document.address() );
--- trunk/KDE/kdeedu/marble/src/lib/geodata/writers/kml/KmlLineStyleTagWriter.cpp #1184351:1184352
@@ -32,10 +32,10 @@
QColor color = style.color();
QChar fill = QChar( '0' );
QString colorString = QString( "%1%2%3%4" )
- .arg( color.red(), 2, 16, fill )
+ .arg( color.alpha(), 2, 16, fill )
+ .arg( color.blue(), 2, 16, fill )
.arg( color.green(), 2, 16, fill )
- .arg( color.blue(), 2, 16, fill )
- .arg( color.alpha(), 2, 16, fill );
+ .arg( color.red(), 2, 16, fill );
writer.writeElement( "color", colorString );
writer.writeElement( "width", QString::number( style.width() ) );
More information about the Marble-commits
mailing list