Commit 2b5414ff authored by Pablo de Vicente's avatar Pablo de Vicente
Browse files

Small hack to correct a little bug: the previous angle ruler is not drawn

anymore when pressing "[" if one does not move the mouse. I do not like
too much the fix I have made, but it is only two lines and it works, so
we can live with it.

CCMAIL: kstars-devel@kde.org

svn path=/trunk/kdeedu/kstars/; revision=289806
parent 61eab744
......@@ -634,8 +634,10 @@ void SkyMap::slotInfo( int id ) {
}
void SkyMap::slotBeginAngularDistance(void) {
angularDistanceMode = true;
setPreviousClickedPoint( mousePoint() );
angularDistanceMode = true;
beginRulerPoint = getXY( previousClickedPoint(), data->options->useAltAz, data->options->useRefraction);
endRulerPoint = QPoint( beginRulerPoint.x(),beginRulerPoint.y() );
}
void SkyMap::slotEndAngularDistance(void) {
......
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