summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Mathog <>2012-10-18 18:20:34 +0000
committer~suv <suv-sf@users.sourceforge.net>2012-10-18 18:20:34 +0000
commit647afe1aa1b2da82f39a70868c370997c22bb696 (patch)
tree665d7db1e106cff436231b2abcd8a037f108b908 /src
parentmerge from trunk (r11808) (diff)
downloadinkscape-647afe1aa1b2da82f39a70868c370997c22bb696.tar.gz
inkscape-647afe1aa1b2da82f39a70868c370997c22bb696.zip
changes_2012_10_18b.patch:
Additional fix for text that starts with any of the characters 0x0-0x1F cast the tested character to unsigned to prevent dropping of some strings (follow-up to r11984) (bzr r11668.1.31)
Diffstat (limited to 'src')
-rw-r--r--src/extension/internal/emf-inout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extension/internal/emf-inout.cpp b/src/extension/internal/emf-inout.cpp
index 295bbd5ea..8be4e998e 100644
--- a/src/extension/internal/emf-inout.cpp
+++ b/src/extension/internal/emf-inout.cpp
@@ -2708,7 +2708,7 @@ std::cout << "BEFORE DRAW"
ansi_text = (char *) U_Utf32leToUtf8((uint32_t *)dup_wt, 0, NULL);
free(dup_wt);
// Empty string or starts with an invalid escape/control sequence, which is bogus text. Throw it out before g_markup_escape_text can make things worse
- if(*ansi_text <= 0x1F){
+ if(*((uint8_t *)ansi_text) <= 0x1F){
free(ansi_text);
ansi_text=NULL;
}