bug moved to other line

parent 451a55a6
......@@ -33,7 +33,7 @@ void Shape::update(cv::Point &&t_max_pos, int const t_max_size,
{
int const size = (rand() % (t_max_size - t_min_size)) + t_min_size + 1;
cv::Point const top_left
= {rand() % (t_max_pos.x - size), rand() % (t_max_pos.y - size)};
= {rand() % (t_max_pos.x - size + 1), rand() % (t_max_pos.y - size + 1)};
if (type_ == ShapeType::Triangle) {
create_triangle_points(top_left, size);
} else { // ShapeType::Square
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment