[Marble-commits] KDE/kdeedu/marble/src/lib
Thibaut Gridel
tgridel at free.fr
Sat Jan 15 14:34:35 CET 2011
SVN commit 1214589 by tgridel:
fixes from review
M +1 -2 PlacemarkLayout.cpp
M +1 -1 routing/RoutingInputWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/PlacemarkLayout.cpp #1214588:1214589
@@ -131,6 +131,7 @@
m_paintOrder.clear();
qDeleteAll( m_visiblePlacemarks );
m_visiblePlacemarks.clear();
+ m_maxLabelHeight = maxLabelHeight();
}
QVector<QModelIndex> PlacemarkLayout::whichPlacemarkAt( const QPoint& curpos )
@@ -203,8 +204,6 @@
if ( m_styleResetRequested ) {
m_styleResetRequested = false;
styleReset();
-
- m_maxLabelHeight = maxLabelHeight();
}
if ( m_maxLabelHeight == 0 ) {
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingInputWidget.cpp #1214588:1214589
@@ -281,7 +281,7 @@
void RoutingInputWidget::setPlacemarkModel( QAbstractItemModel *model )
{
- d->m_placemarkModel = static_cast<MarblePlacemarkModel*>(model);
+ d->m_placemarkModel = dynamic_cast<MarblePlacemarkModel*>(model);
}
void RoutingInputWidget::setTargetPosition( const GeoDataCoordinates &position )
More information about the Marble-commits
mailing list