]> git.lyx.org Git - lyx.git/commit
Set a maximum value to zoom level
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 8 Feb 2022 18:42:17 +0000 (19:42 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 23 Nov 2022 17:51:53 +0000 (18:51 +0100)
commitc203a842fce88f7313ceb6da99f6a4a10f50f365
treec7101bb9f13bf4c70f74346022a77e320962561e
parentc8b0b1591202272903074de7bef2b0227c321357
Set a maximum value to zoom level

The minimal vamue is set to 10%, let's set the max to 1000%. This
avoids crashes when characters are too large.

The code is refactored to be more compact and the tests are more precise.

Fixes bug #12452.

(cherry picked from commit 5259b6ba62fd4e31c260d73cbdfdb66847afcb98)
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiView.h
status.23x