mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
parent
4cfa5a9d2a
commit
b9b6e4c083
@ -288,10 +288,8 @@ graphics::Params InsetGraphicsParams::as_grfxParams() const
|
||||
}
|
||||
|
||||
// Paranoia check.
|
||||
int const width = pars.bb.xr.inBP() - pars.bb.xl.inBP();
|
||||
int const height = pars.bb.yt.inBP() - pars.bb.yb.inBP();
|
||||
|
||||
if (width < 0 || height < 0) {
|
||||
if (pars.bb.xr.inBP() < pars.bb.xl.inBP()
|
||||
|| pars.bb.yt.inBP() < pars.bb.yb.inBP()) {
|
||||
pars.bb.xl = Length();
|
||||
pars.bb.xr = Length();
|
||||
pars.bb.yb = Length();
|
||||
|
Loading…
Reference in New Issue
Block a user