[Marble-commits] KDE/kdeedu/marble/src/lib
Patrick Spendrin
ps_ml at gmx.de
Sat Jul 11 17:53:35 CEST 2009
SVN commit 994886 by sengels:
use the vector directly to get the correct end-iterator
M +6 -5 MarbleGeometryModel.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarbleGeometryModel.cpp #994885:994886
@@ -51,11 +51,12 @@
if( !geometry ) return;
GeoDataMultiGeometry* multiGeometry = static_cast<GeoDataMultiGeometry*>( geometry );
- QVector<GeoDataGeometry>::iterator iterator = multiGeometry->begin();
- QVector<GeoDataGeometry>::iterator end = multiGeometry->end();
- for(; iterator != end; ++iterator ) {
- m_parent.insert( &( *iterator ), geometry );
- if( iterator->geometryId() == GeoDataMultiGeometryId ) mapGeometry( &( *iterator ) );
+ QVector<GeoDataGeometry>::iterator iterator = multiGeometry->vector().begin();
+ QVector<GeoDataGeometry>::iterator end = multiGeometry->vector().end();
+
+ for(; iterator != end; iterator++ ) {
+ m_parent.insert( iterator, geometry );
+ if( iterator->geometryId() == GeoDataMultiGeometryId ) mapGeometry( iterator );
}
};
More information about the Marble-commits
mailing list