fix magnifier effect exit

precision is usually enough to end on exactly "1.0"
so the effect was "hidden" but the mouse still polled.
This commit is contained in:
Thomas Lübking 2013-07-25 19:12:30 +02:00
parent 2f46414ea7
commit 57485cfefc

View file

@ -266,7 +266,7 @@ void MagnifierEffect::zoomIn()
void MagnifierEffect::zoomOut()
{
target_zoom /= 1.2;
if (target_zoom < 1) {
if (target_zoom <= 1) {
target_zoom = 1;
if (polling) {
polling = false;