Commit dfc4cb09 authored by Jan Möbius's avatar Jan Möbius
Browse files

Removed compiler warning in Decimater widget where behaviour could be undefined

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@414 fdac6126-5c0c-442c-9429-916003d36597
parent 8996906c
......@@ -82,13 +82,15 @@ void DecimaterViewerWidget::keyPressEvent(QKeyEvent* _event)
}
case Key_Plus:
steps_ = std::min( ++steps_, (size_t)(mesh_.n_vertices() * 0.1) );
++steps_;
steps_ = std::min( steps_ , (size_t)( mesh_.n_vertices() / 10 ) );
updateGL();
std::cout << "# decimating steps increased to " << steps_ << std::endl;
break;
case Key_Minus:
steps_ = std::max( --steps_, size_t(1) );
--steps_;
steps_ = std::max( steps_ , size_t(1) );
updateGL();
std::cout << "# decimating steps increased to " << steps_ << std::endl;
break;
......
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