Commit 7aa6bd42 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use qFuzzyCompare here

parent d73ae7e2
Pipeline #51850 passed with stage
in 42 minutes and 3 seconds
......@@ -938,7 +938,7 @@ void ViewerPrivate::applyZoomValue(qreal factor, bool saveConfig)
{
if (mZoomActionMenu) {
if (factor >= 10 && factor <= 300) {
if (mZoomActionMenu->zoomFactor() != factor) {
if (!qFuzzyCompare(mZoomActionMenu->zoomFactor(), factor)) {
mZoomActionMenu->setZoomFactor(factor);
mZoomActionMenu->setWebViewerZoomFactor(factor / 100.0);
if (saveConfig) {
......
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