From 491cfbd8b28d0f91e5b16b2e875d52605e3a77a4 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sun, 31 Oct 2021 14:28:31 +0200 Subject: [PATCH] [fbreader] Round down the magnification factor It seemed too agressive with certain books --- .../fbreader/fbreader/src/formats/css/StyleSheetTable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fbreader/fbreader/fbreader/src/formats/css/StyleSheetTable.cpp b/fbreader/fbreader/fbreader/src/formats/css/StyleSheetTable.cpp index a040f3b..04f649d 100644 --- a/fbreader/fbreader/fbreader/src/formats/css/StyleSheetTable.cpp +++ b/fbreader/fbreader/fbreader/src/formats/css/StyleSheetTable.cpp @@ -1,6 +1,6 @@ /* * Copyright (C) 2004-2010 Geometer Plus - * Copyright (C) 2015 Slava Monich + * Copyright (C) 2015-2021 Slava Monich * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -330,12 +330,12 @@ void StyleSheetTable::updateTextStyle(ZLTextStyleEntry &entry, const AttributeMa entry.setFontSizeMag(-mag); } } else if (size > 100) { - if (size < 120) { + if (size <= 120) { entry.setFontSizeMag(1); } else { int mag; unsigned int x1 = 6*100, x2 = 5*size; - for (mag=1; mag<=6 && x1