Disambiguate with doubles
svn path=/trunk/KDE/kdebase/workspace/; revision=764602
This commit is contained in:
parent
74a8a4d417
commit
2369452995
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue