Update viewer.cpp

This commit is contained in:
Felix Kauselmann 2020-09-07 08:54:23 +02:00 committed by GitHub
parent 3342fef1cb
commit acce89ef78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,7 +317,7 @@ void Viewer::updateContentSize()
//there is an image to resize //there is an image to resize
if (currentPage != nullptr && !currentPage->isNull()) { if (currentPage != nullptr && !currentPage->isNull()) {
QSize pagefit = currentPage->size(); QSize pagefit = currentPage->size();
bool stretchImages = Configuration::getConfiguration().getSettings()->value(ENLARGE_IMAGES).toBool(); bool stretchImages = Configuration::getConfiguration().getSettings()->value(ENLARGE_IMAGES, true).toBool();
YACReader::FitMode fitmode = Configuration::getConfiguration().getFitMode(); YACReader::FitMode fitmode = Configuration::getConfiguration().getFitMode();
switch (fitmode) { switch (fitmode) {
case YACReader::FitMode::FullRes: case YACReader::FitMode::FullRes: