Commit f693e2ae authored by Torsten Rahn's avatar Torsten Rahn

- Fixing moveLeft and moveRight as well ..


svn path=/trunk/KDE/kdeedu/marble/; revision=692993
parent 1cb0a9e8
......@@ -493,12 +493,28 @@ void MarbleWidget::setHome(const GeoPoint& _homePoint, int zoom)
void MarbleWidget::moveLeft()
{
rotateBy( 0, moveStep() );
int polarity = 0;
if ( northPoleY() != 0 )
polarity = northPoleY() / abs(northPoleY());
if ( polarity < 0 )
rotateBy( 0, +moveStep() );
else
rotateBy( 0, -moveStep() );
}
void MarbleWidget::moveRight()
{
rotateBy( 0, -moveStep() );
int polarity = 0;
if ( northPoleY() != 0 )
polarity = northPoleY() / abs(northPoleY());
if ( polarity < 0 )
rotateBy( 0, -moveStep() );
else
rotateBy( 0, +moveStep() );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment