diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2006-02-27 00:25:30 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2006-02-27 00:25:30 +0000 |
| commit | b64e3fe2e0c83f848ecc2cb0ff38e0649f733507 (patch) | |
| tree | 8e2e185ca30227aecd78b90806bfa3ad6c0e8db8 /src/text-context.cpp | |
| parent | add flatten to makefile, fix a few inconsistencies (diff) | |
| download | inkscape-b64e3fe2e0c83f848ecc2cb0ff38e0649f733507.tar.gz inkscape-b64e3fe2e0c83f848ecc2cb0ff38e0649f733507.zip | |
Allowed Private Use Area chacters to be entered.
(bzr r184)
Diffstat (limited to 'src/text-context.cpp')
| -rw-r--r-- | src/text-context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<gunichar>(uv)) + && !(g_unichar_validate(static_cast<gunichar>(uv)) && (g_unichar_type(static_cast<gunichar>(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")); |
