Skip to content

Problem with extend_rect #2

@ppiecuch

Description

@ppiecuch

Hello - I have a problem with a code of extend_rect method, I think: it causes second and third Radio to be drawn very large. I have changed the code as below:
void extend_rect(Rect &r)
{
r.sx = std::max(r.sx, /_x + */sx);
r.sy = std::max(r.sy, /_y + */sy);
}
and it is now ok, but I wondering how does it worked before?

Regards
Pawel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions