[Libreoffice-commits] libcdr.git: src/lib
Fridrich Å trba
fridrich.strba at bluewin.ch
Fri Mar 22 01:29:26 PDT 2013
src/lib/CDRParser.cpp | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 67787854285459557e0bc8f89e14091da07c743e
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Fri Mar 22 09:29:02 2013 +0100
Detect also uppercase " TUR" postfix
diff --git a/src/lib/CDRParser.cpp b/src/lib/CDRParser.cpp
index 60c3ccb..52cea0b 100644
--- a/src/lib/CDRParser.cpp
+++ b/src/lib/CDRParser.cpp
@@ -104,6 +104,8 @@ static void processNameForEncoding(WPXString &name, unsigned short &encoding)
encoding = 0xa1;
else if (length > 4 && (found=fontName.rfind(" Tur", length - 4)) != std::string::npos)
encoding = 0xa2;
+ else if (length > 4 && (found=fontName.rfind(" TUR", length - 4)) != std::string::npos)
+ encoding = 0xa2;
else if (length > 7 && (found=fontName.rfind(" Hebrew", length - 7)) != std::string::npos)
encoding = 0xb1;
else if (length > 7 && (found=fontName.rfind(" Arabic", length - 7)) != std::string::npos)
More information about the Libreoffice-commits
mailing list