- incorrect RegEx to read some CRS files
- all files were assumed to be metric - (UNITS = ENGLISH) now converts
- scaling adjusted to not clip the top when some graphs were longer
This commit is contained in:
Marc Boudreau
2012-03-12 22:41:28 -04:00
committed by Mark Liversedge
parent 0430568d99
commit c1d8c1ca51
2 changed files with 26 additions and 16 deletions

View File

@@ -50,10 +50,10 @@ QRectF ErgFileData::boundingRect() const
foreach(ErgFilePoint x, main->currentErgFile()->Points) {
if (x.y > maxY) maxY = x.y;
if (x.x > maxX) maxX = x.x;
if (x.y < minY) minY = x.x;
if (x.y < minY) minY = x.y;
if (x.x < minX) minX = x.x;
}
maxY *= 1.1f; // always need a bit of headroom
maxY *= 1.3f; // always need a bit of headroom
return QRectF(minX, minY, maxX, maxY);
}
return QRectF(0,0,0,0);