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