aboutsummaryrefslogtreecommitdiff
path: root/ink_stroke_modeler/stroke_modeler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ink_stroke_modeler/stroke_modeler.cc')
-rw-r--r--ink_stroke_modeler/stroke_modeler.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ink_stroke_modeler/stroke_modeler.cc b/ink_stroke_modeler/stroke_modeler.cc
index 917d2d6..37d17f5 100644
--- a/ink_stroke_modeler/stroke_modeler.cc
+++ b/ink_stroke_modeler/stroke_modeler.cc
@@ -103,6 +103,10 @@ absl::StatusOr<std::vector<Result>> StrokeModeler::Update(const Input &input) {
"Stroke model has not yet been initialized");
}
+ if (absl::Status status = ValidateInput(input); !status.ok()) {
+ return status;
+ }
+
if (last_input_) {
if (last_input_->input == input) {
return absl::InvalidArgumentError("Received duplicate input");