optimize: float number compare precision

optimize: float number compare precision
This commit is contained in:
yifang 2022-02-19 00:16:11 +08:00
parent f06fc48b40
commit 7e2231805f
2 changed files with 2 additions and 2 deletions

View file

@ -254,7 +254,7 @@ void HelpWindow::applyZoomFactor()
zoomInAction->setEnabled( cfg.preferences.helpZoomFactor < 5 );
zoomOutAction->setEnabled( cfg.preferences.helpZoomFactor > 0.2 );
zoomBaseAction->setEnabled( cfg.preferences.helpZoomFactor != 1.0 );
zoomBaseAction->setEnabled( !qFuzzyCompare(cfg.preferences.helpZoomFactor, 1.0) );
if( fontSize > 0 )
{

View file

@ -3720,7 +3720,7 @@ void MainWindow::adjustCurrentZoomFactor()
zoomIn->setEnabled( cfg.preferences.zoomFactor < 5 );
zoomOut->setEnabled( cfg.preferences.zoomFactor > 0.1 );
zoomBase->setEnabled( cfg.preferences.zoomFactor != 1.0 );
zoomBase->setEnabled( !qFuzzyCompare( cfg.preferences.zoomFactor, 1.0 ) );
}
void MainWindow::scaleArticlesByCurrentZoomFactor()