Image crop bounds limited to not cause integer division by zero error
This commit is contained in:
parent
fb344f3a54
commit
5cbcc9af80
6 changed files with 15 additions and 8 deletions
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue