[Libreoffice] [PATCH] fix obvious bug in VCL that prevent glyph-fallback for one glyph-missing character at the end of string

Samphan Raruenrom samphan at osdev.co.th
Thu Mar 24 07:27:50 PDT 2011


While working on other bugs, we found this bug in 
vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx . When 
there is only one character at the end of the string that require 
glyph-fallback, the bug prevent glyph-fallbacking. Because the code will 
not detect that the last character need glyph-fallback. It is an obvious 
bug because of wrong loop's terminating condition checking.

Please take a look.

Samphan.

-- 
_/|\_ /Samphan Raruenrom./  Osdev - Open Source Development Co., Ltd.
/สัมพันธ์ ระรื่นรมย์./  โอเอสเด็บ - บริษัท โอเพนซอร์สดิเวลอปเมนต์ จำกัด
tel: +66 2 269 9889  web: osdev.co.th <http://www.osdev.co.th/>
twitter: @osdev <http://twitter.com/osdev>  facebook: facebook.com/osdev 
<http://www.facebook.com/osdev>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110324/ad0476db/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fallback.patch
Type: text/x-patch
Size: 1221 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110324/ad0476db/attachment.bin>


More information about the LibreOffice mailing list