[Marble-commits] KDE/kdeedu/marble/src/lib
Andrew Manson
g.real.ate at gmail.com
Tue Jul 28 13:20:27 CEST 2009
SVN commit 1003564 by mansona:
fixing some internal variable names and adding a repaint() at the
end of the new centerOn() method
M +4 -3 MarbleWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.cpp #1003563:1003564
@@ -589,14 +589,15 @@
qDebug() << "Centering on: " << box.center().toString();
ViewportParams* viewparams = d->m_map->viewParams()->viewport();
- int bigestScreenSize = viewparams->height() > viewparams->width() ?
+ int maxScreenSize = viewparams->height() > viewparams->width() ?
viewparams->height() : viewparams->width();
- qreal bigestBoundingSize = box.height() > box.width() ? box.height() : box.width();
+ qreal maxBoundingSize = box.height() > box.width() ? box.height() : box.width();
- int zoomRadius = ( 0.25 * M_PI ) * ( bigestScreenSize / bigestBoundingSize );
+ int zoomRadius = ( 0.25 * M_PI ) * ( maxScreenSize / maxBoundingSize );
setRadius( zoomRadius );
+ repaint();
}
void MarbleWidget::updateAnimation( qreal updateValue )
More information about the Marble-commits
mailing list