Corrected typo

This commit is contained in:
Clement Roblot 2024-11-26 17:25:16 +07:00
parent 46f7fbb8dc
commit 26507ad5b9
3 changed files with 12 additions and 12 deletions

View File

@ -72,15 +72,15 @@ class HBox : public Node {
return; return;
} }
const bool xmin_satured = const bool xmin_saturated =
selection.y_min < box_.y_min || selection.x_min < box_.x_min; selection.y_min < box_.y_min || selection.x_min < box_.x_min;
const bool xmax_satured = const bool xmax_saturated =
selection.y_max > box_.y_max || selection.x_max > box_.x_max; selection.y_max > box_.y_max || selection.x_max > box_.x_max;
if (xmin_satured) { if (xmin_saturated) {
selection.x_min = box_.x_min; selection.x_min = box_.x_min;
} }
if (xmax_satured) { if (xmax_saturated) {
selection.x_max = box_.x_max; selection.x_max = box_.x_max;
} }

View File

@ -33,13 +33,13 @@ class Text : public Node {
return; return;
} }
const bool xmin_satured = const bool xmin_saturated =
selection.y_min < box_.y_min || selection.x_min < box_.x_min; selection.y_min < box_.y_min || selection.x_min < box_.x_min;
const bool xmax_satured = const bool xmax_saturated =
selection.y_max > box_.y_max || selection.x_max > box_.x_max; selection.y_max > box_.y_max || selection.x_max > box_.x_max;
selection_start_ = xmin_satured ? box_.x_min : selection.x_min; selection_start_ = xmin_saturated ? box_.x_min : selection.x_min;
selection_end_ = xmax_satured ? box_.x_max : selection.x_max; selection_end_ = xmax_saturated ? box_.x_max : selection.x_max;
has_selection = true; has_selection = true;

View File

@ -72,14 +72,14 @@ class VBox : public Node {
return; return;
} }
const bool ymin_satured = const bool ymin_saturated =
selection.x_min < box_.x_min || selection.y_min < box_.y_min; selection.x_min < box_.x_min || selection.y_min < box_.y_min;
const bool ymax_satured = const bool ymax_saturated =
selection.x_max > box_.x_max || selection.y_max > box_.y_max; selection.x_max > box_.x_max || selection.y_max > box_.y_max;
if (ymin_satured) { if (ymin_saturated) {
selection.y_min = box_.y_min; selection.y_min = box_.y_min;
} }
if (ymax_satured) { if (ymax_saturated) {
selection.y_max = box_.y_max; selection.y_max = box_.y_max;
} }