mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Allow broken subdiv bounds produced by mkgmap
This commit is contained in:
parent
80f5bbfbce
commit
1225d350d4
@ -206,6 +206,10 @@ bool TREFile::load(int idx)
|
|||||||
qWarning("%s: invalid subdiv bounds (level %d; pos %f,%f; size %fx%f)",
|
qWarning("%s: invalid subdiv bounds (level %d; pos %f,%f; size %fx%f)",
|
||||||
qPrintable(fileName()), level.level, toWGS24(lon), toWGS24(lat),
|
qPrintable(fileName()), level.level, toWGS24(lon), toWGS24(lat),
|
||||||
toWGS24(width), toWGS24(height));
|
toWGS24(width), toWGS24(height));
|
||||||
|
/* mkgmap produces invalid (zero width or/and zero height) subdiv
|
||||||
|
bounds in some cases. Allow such bounds as they should not break
|
||||||
|
things. */
|
||||||
|
if (!(!width || !height))
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user