[PATCH] fdo#46223: Fix Presenter Console help screen layout

Gábor Stefanik netrolller.3d at gmail.com
Thu May 10 21:35:59 PDT 2012


The code for laying out the Presenter Console help screen has a number
of errors:
1. It starts with an initial guess for the font size, then attempts to
reduce that size until a suitable value is found. This fails when the
initial guess is already too small.
2. It fails to take the space taken up by the Close button into
account. As a result, help text may overlap the Close button.
3. Long lines are only wrapped next to commas, and never at spaces.
This can cause text to get clipped horizontally, instead of being
correctly wrapped.

This patch fixes these issues.
Wrapping still prefers commas to spaces, but if a sequence containing
no commas cannot fit on a single line, it resorts to space-based
wrapping. This way, clipping can only occur if a single long word
cannot fit on a line - hardly a plausible scenario.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fdo-46223-Fix-Presenter-Console-help-screen-layout.patch
Type: application/octet-stream
Size: 5652 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120511/2dd6bd83/attachment.obj>


More information about the LibreOffice mailing list