Set the minimum zoom level from 0.7 to 0.1

This commit is contained in:
Tvangeste 2013-03-13 21:19:38 +01:00
parent f595b37fd0
commit c45bf96701

View file

@ -2954,11 +2954,11 @@ void MainWindow::applyZoomFactor()
{ {
if ( cfg.preferences.zoomFactor >= 5 ) if ( cfg.preferences.zoomFactor >= 5 )
cfg.preferences.zoomFactor = 5; cfg.preferences.zoomFactor = 5;
else if ( cfg.preferences.zoomFactor <= 0.7 ) else if ( cfg.preferences.zoomFactor <= 0.1 )
cfg.preferences.zoomFactor = 0.7; cfg.preferences.zoomFactor = 0.1;
zoomIn->setEnabled( cfg.preferences.zoomFactor < 5 ); zoomIn->setEnabled( cfg.preferences.zoomFactor < 5 );
zoomOut->setEnabled( cfg.preferences.zoomFactor > 0.7 ); zoomOut->setEnabled( cfg.preferences.zoomFactor > 0.1 );
zoomBase->setEnabled( cfg.preferences.zoomFactor != 1.0 ); zoomBase->setEnabled( cfg.preferences.zoomFactor != 1.0 );
for ( int i = 0; i < ui.tabWidget->count(); i++ ) for ( int i = 0; i < ui.tabWidget->count(); i++ )