1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2017-12-01 22:24:04 +01:00
parent 6c6e384862
commit 53147b5e6e

View File

@ -2,11 +2,12 @@
RectC Path::boundingRect() const RectC Path::boundingRect() const
{ {
if (size() < 2) RectC ret;
return RectC();
RectC ret(first().coordinates(), first().coordinates()); if (size() < 2)
for (int i = 1; i < size(); i++) return ret;
for (int i = 0; i < size(); i++)
ret.unite(at(i).coordinates()); ret.unite(at(i).coordinates());
return ret; return ret;