Commit 42866ff9 authored by JanKusanagi's avatar JanKusanagi

Fixed zoom out button sometimes not getting disabled at 5%

parent 54e6f5bf
......@@ -458,7 +458,8 @@ void ImageViewer::drawImage()
void ImageViewer::toggleZoomButtons()
{
m_zoomInButton->setDisabled(m_zoomLevel >= 5.00);
m_zoomOutButton->setDisabled(m_zoomLevel <= 0.05);
// Some rounding issue sometimes makes this fail with <= 0.05, so...
m_zoomOutButton->setDisabled(m_zoomLevel < 0.06);
m_fullButton->setDisabled(m_zoomLevel == 1.0);
}
......
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