src/lib/CDRParser.cpp | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 67787854285459557e0bc8f89e14091da07c743e
Author: Fridrich Å trba <[email protected]>
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)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits