mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Code cleanup
This commit is contained in:
parent
6c6e384862
commit
53147b5e6e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user