diff --git a/Triangulation_3/demo/Triangulation_3/Viewer.cpp b/Triangulation_3/demo/Triangulation_3/Viewer.cpp index 27d7058a800..d5b06649b12 100644 --- a/Triangulation_3/demo/Triangulation_3/Viewer.cpp +++ b/Triangulation_3/demo/Triangulation_3/Viewer.cpp @@ -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;