Kill MSVC warning

Fixes bug #10900.
This commit is contained in:
Jean-Marc Lasgouttes 2017-12-14 13:04:52 +01:00
parent 4cfa5a9d2a
commit b9b6e4c083

View File

@ -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();