mirror of https://github.com/CGAL/cgal
0.1 -> 0.1f to avoid a warning
This commit is contained in:
parent
99006a8e06
commit
f8b8e7c643
|
|
@ -971,7 +971,7 @@ void Viewer::wheelEvent(QWheelEvent *event)
|
|||
// negative value: rotate backwards toward the user.
|
||||
m_fRadius += (event->delta()*1. / m_iStep ); // inc-/decrease by 0.1 per step
|
||||
if( m_fRadius < 0.1 )
|
||||
m_fRadius = 0.1;
|
||||
m_fRadius = 0.1f;
|
||||
|
||||
// redraw
|
||||
updateGL();
|
||||
|
|
@ -985,7 +985,7 @@ void Viewer::wheelEvent(QWheelEvent *event)
|
|||
float origR = m_fRadius;
|
||||
m_fRadius += (event->delta()*1. / m_iStep ); // inc-/decrease by 0.1 per step
|
||||
if( m_fRadius < 0.1 )
|
||||
m_fRadius = 0.1;
|
||||
m_fRadius = 0.1f;
|
||||
// update the new point and its conflict region
|
||||
if( m_hasNewPt ) {
|
||||
origR = m_fRadius / origR;
|
||||
|
|
@ -1003,7 +1003,7 @@ void Viewer::wheelEvent(QWheelEvent *event)
|
|||
float origR = m_fRadius;
|
||||
m_fRadius += (event->delta()*1. / m_iStep ); // inc-/decrease by 0.1 per step
|
||||
if( m_fRadius < 0.1 )
|
||||
m_fRadius = 0.1;
|
||||
m_fRadius = 0.1f;
|
||||
origR = m_fRadius / origR;
|
||||
Point_3 pt = m_pScene->m_vhArray.at( m_vidMoving )->point();
|
||||
// note: QList::operator[] return a modifiable reference;
|
||||
|
|
|
|||
Loading…
Reference in New Issue