Disambiguate with doubles

svn path=/trunk/KDE/kdebase/workspace/; revision=764602
icc-effect-5.14.5
Adriaan de Groot 2008-01-22 05:36:41 +00:00
parent 74a8a4d417
commit 2369452995
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ void MouseMarkEffect::clearLast()
MouseMarkEffect::Mark MouseMarkEffect::createArrow( QPoint arrow_start, QPoint arrow_end )
{
Mark ret;
double angle = atan2( arrow_end.y() - arrow_start.y(), arrow_end.x() - arrow_start.x());
double angle = atan2( (double) (arrow_end.y() - arrow_start.y()), (double) (arrow_end.x() - arrow_start.x()));
ret += arrow_start + QPoint( 50 * cos( angle + M_PI / 6 ),
50 * sin( angle + M_PI / 6 )); // right one
ret += arrow_start;