mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
Fix:
- 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:
committed by
Mark Liversedge
parent
0430568d99
commit
c1d8c1ca51
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user