mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
GuiGraphic: delimit "Scale in LyX" (1--1000%)
Larger values will eventually crash LyX (see #12353), 0 or negative
values make the image disappear in the workarea and impossible to edit.
(cherry picked from parts of
commit 14d63f5be8
)
This commit is contained in:
parent
8f219c976f
commit
0f34a81ee8
@ -209,7 +209,7 @@ GuiGraphics::GuiGraphics(GuiView & lv)
|
|||||||
connect(groupCO, SIGNAL(currentIndexChanged(int)),
|
connect(groupCO, SIGNAL(currentIndexChanged(int)),
|
||||||
this, SLOT(changeGroup(int)));
|
this, SLOT(changeGroup(int)));
|
||||||
|
|
||||||
displayscale->setValidator(new QIntValidator(displayscale));
|
displayscale->setValidator(new QIntValidator(1, 1000, displayscale));
|
||||||
|
|
||||||
bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy);
|
bc().setPolicy(ButtonPolicy::NoRepeatedApplyReadOnlyPolicy);
|
||||||
bc().setOK(okPB);
|
bc().setOK(okPB);
|
||||||
|
@ -151,6 +151,8 @@ What's new
|
|||||||
|
|
||||||
- Limit zoom value to 1000% to avoid crashes (bug 12452).
|
- Limit zoom value to 1000% to avoid crashes (bug 12452).
|
||||||
|
|
||||||
|
- Limit graphics scaling in LyX to 1--1000% to avoid crashes (12353).
|
||||||
|
|
||||||
- Fix potential crash with 32bit ucs4 codepoints (bug 12519).
|
- Fix potential crash with 32bit ucs4 codepoints (bug 12519).
|
||||||
|
|
||||||
- Catch warnings from packages that contain a hyphen in their name
|
- Catch warnings from packages that contain a hyphen in their name
|
||||||
|
Loading…
Reference in New Issue
Block a user