summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-06-19 12:19:28 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-06-19 12:19:28 +0200
commit43d13b0962879d84adfe3933bb6687bcfe2d3e3f (patch)
tree4f51a84802b3eff2a0465b0cdf85096c10cf443e
parentd7237089f294963eafe06f3cec08f84732517bfb (diff)
Fix utf16 parsing
-rw-r--r--src/lib/libvisio_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libvisio_utils.cpp b/src/lib/libvisio_utils.cpp
index 9fd0eb9..22b6507 100644
--- a/src/lib/libvisio_utils.cpp
+++ b/src/lib/libvisio_utils.cpp
@@ -445,7 +445,7 @@ void libvisio::appendCharacters(WPXString &text, const std::vector<unsigned char
break;
}
character = *iter++;
- character = (uint16_t)(*iter++) << 8;
+ character |= (uint16_t)(*iter++) << 8;
if (character >= 0xdc00 && character < 0xe000) /* low surrogate */
{
if (high_surrogate)