Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Unified Diff: samplecode/OverView.cpp

Issue 1767683002: Ignore backspace when appending to the filter string in SampleApp. Fixes a bug on Windows where the… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Ignore *all* unprintable characters Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/OverView.cpp
diff --git a/samplecode/OverView.cpp b/samplecode/OverView.cpp
index d7633452bc3c98e2864564e1ab59b14640ea7576..8520f5700051bf1932fab02a7fb5ab5e0685d230 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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698