[Libreoffice] stucked with a bug

Caolán McNamara caolanm at redhat.com
Mon Sep 12 03:01:17 PDT 2011


On Mon, 2011-08-29 at 12:28 +0200, Dávid Vastag wrote:
> The problem is that the width of the symbol on the open button is not
> taken into account at calculation of overall button width. ... To
> solve this issue I have to find a way somehow to extract dynamically
> this symbol width information in code. I figured out that I can get it
> by functions Button::ImplGetSymbolRect().getWidth() but unfortunately
> it gives a kind of uninitialized value ( -32767 ) during the whole
> creation of start window I don't know why.

Can you post your code anyway ?, might be easier to debug with the
patch. It might be that the width is requested too early in the startup
order before e.g. fonts have been read to know their size or something
like that. Or it might be something less exotic, easier to know with the
sample code.

C.



More information about the LibreOffice mailing list