aboutsummaryrefslogtreecommitdiff
path: root/samplecode/OverView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/OverView.cpp')
-rw-r--r--samplecode/OverView.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/samplecode/OverView.cpp b/samplecode/OverView.cpp
index d7633452bc..8520f57000 100644
--- a/samplecode/OverView.cpp
+++ b/samplecode/OverView.cpp
@@ -59,7 +59,9 @@ protected:
}
SkUnichar uni;
if (SampleCode::CharQ(*evt, &uni)) {
- fMatchStr.appendUnichar(uni);
+ if (uni >= ' ') {
+ fMatchStr.appendUnichar(uni);
+ }
this->inval(nullptr);
return true;
}