From 19b18d782247690048420a55a2ec37127c02feb8 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 17 Mar 2013 13:04:48 +0000 Subject: (svn r25090) -Fix: Make editbox character filters also apply to pasted content from clipboard. --- src/textbuf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textbuf.cpp b/src/textbuf.cpp index 457388db7..f38bfd17b 100644 --- a/src/textbuf.cpp +++ b/src/textbuf.cpp @@ -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; -- cgit v1.2.3-54-g00ecf