From 7efc0ffa271e61df60ac9a24755ad44224006e30 Mon Sep 17 00:00:00 2001 From: joncruz Date: Mon, 27 Feb 2006 00:25:30 +0000 Subject: [PATCH] Allowed Private Use Area chacters to be entered. --- ChangeLog | 5 +++++ src/text-context.cpp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 71b3ec903..9396039eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-26 Jon A. Cruz + * src/text-context.cpp: + + Allow Private Use Area characters. Fixes bug #1439016. + 2006-02-18 Jon A. Cruz * src/dialogs/swatches.cpp, src/dialogs/iconpreview.cpp, src/ui/widget/panel.cpp, src/ui/widget/panel.h: diff --git a/src/text-context.cpp b/src/text-context.cpp index d59ba6bdf..5f4bbdba7 100644 --- a/src/text-context.cpp +++ b/src/text-context.cpp @@ -519,7 +519,8 @@ insert_uni_char(SPTextContext *const tc) tc->unipos = 0; tc->uni[tc->unipos] = '\0'; - if (!g_unichar_isprint((gunichar) uv)) { + if ( !g_unichar_isprint(static_cast(uv)) + && !(g_unichar_validate(static_cast(uv)) && (g_unichar_type(static_cast(uv)) == G_UNICODE_PRIVATE_USE) ) ) { // This may be due to bad input, so it goes to statusbar. tc->desktop->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("Non-printable character")); -- 2.30.2