To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=113301





------- Additional comments from kstrib...@openoffice.org Sat Jul 24 14:24:50 
+0000 2010 -------
The patch prevents the crash by avoiding calling graphite when mnMinCharPos ==
mnEndCharPos. On windows the example document didn't crash when I changed the
format of the highlighted text, but that seems to be because it happened to use
an existing longer segment from the cache.
The positioning bug appears to be due to the cache of Graphite Segments held by
OOo. Normally, it is alright to use a cached segment which is for a longer
string than was requested, in the CTL case such context is often necessary to
get correct positions. However, in this case the cached segment had the
ligature, whereas the requested text does not due to the hyphen break. The patch
adds code to detect this case by querying the cached segment to determine if the
character at mnEndCharPos-1 maps to a glyph and if so whether that glyph spans
characters outside the requested range. If there is no glyph mapped for that
character or the glyph is a ligature crossing the run boundary, then the cached
segment is ignored and a new segment created with just the requested text.
There seems to be a remaining problem with the hyphenation highlighted in red,
because the top right hand end of the ff ligature is clipped by the rendering of
the background for the hyphen. I haven't yet tracked down where the background
is drawn from to see if it is possible to prevent that happening.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@gsl.openoffice.org
For additional commands, e-mail: issues-h...@gsl.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to