(svn r25090) -Fix: Make editbox character filters also apply to pasted content from clipboard.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
frosch 11 years ago
parent 579ee7a592
commit 19b18d7822

@ -190,7 +190,7 @@ bool Textbuf::InsertClipboard()
uint16 pixels = 0, bytes = 0, chars = 0;
WChar c;
for (const char *ptr = utf8_buf; (c = Utf8Consume(&ptr)) != '\0';) {
if (!IsPrintable(c)) break;
if (!IsValidChar(c, this->afilter)) break;
byte len = Utf8CharLen(c);
if (this->bytes + bytes + len > this->max_bytes) break;

Loading…
Cancel
Save