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
{
if (size() < 2)
return RectC();
RectC ret;
RectC ret(first().coordinates(), first().coordinates());
for (int i = 1; i < size(); i++)
if (size() < 2)
return ret;
for (int i = 0; i < size(); i++)
ret.unite(at(i).coordinates());
return ret;