Image crop bounds limited to not cause integer division by zero error

This commit is contained in:
Yousef Khadadeh 2026-04-03 11:08:56 +03:00
parent fb344f3a54
commit 5cbcc9af80
6 changed files with 15 additions and 8 deletions

View file

@ -12,7 +12,8 @@ class EditTool : public DrawingProgramToolBase {
Vector2f* p;
Vector2f* min;
Vector2f* max;
float minimumDistanceBetweenBoundsAndPoint = MINIMUM_DISTANCE_BETWEEN_BOUNDS;
float minimumDistanceBetweenMinAndPoint = MINIMUM_DISTANCE_BETWEEN_BOUNDS;
float minimumDistanceBetweenMaxAndPoint = MINIMUM_DISTANCE_BETWEEN_BOUNDS;
Affine2f coordMatrix = Affine2f::Identity();
};