Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Martin Hosken píše v Po 19. 03. 2012 v 15:22 +0100:
Dear Petr,

Thank you for the reminder of this issue. My apologies for not getting to it earlier.


I do not understand the code either. I just wonder if it would make
sense to check for:

  while (++nCharIndex - mnMinCharPos <
                    static_cast<int>(mvChar2BaseGlyph.size()))

I would go with the first of these. It makes no sense to compare a
 charIndex against a glyph->char mapping array, whose size is the
 number of glyphs, not characters. I think it is simply a bug.

Sounds reasonable. I have updated the code in master, see
http://cgit.freedesktop.org/libreoffice/core/commit/?id=3a878d3dbfdb11cf2f0cce9dbf28a408c130d556

And pushed it into 3-5 branch, see
http://cgit.freedesktop.org/libreoffice/core/commit/?id=3a878d3dbfdb11cf2f0cce9dbf28a408c130d556


Notice that I am not claiming authoritative understanding of this code
 since it was written by Keith, who unfortunately is no longer with us
 and so cannot comment. I am hoping that when I eventually get time to
 work on this code, and particularly the mac port, I can refactor the
 code and gain the necessary authoritative confidence.

It would be great. Thanks a lot for your opinion.

Best Regards,
Petr


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.