Need help (mentor) while fixing an issue

Michael Stahl mstahl at redhat.com
Tue Feb 14 06:13:45 PST 2012


On 13/02/12 15:19, Jan Holesovsky wrote:
> Hi Dag,
> 
> Dag Wieers píše v Pá 10. 02. 2012 v 16:36 +0100:
> 
>> I found a bug in LibreOffice causing style:rel-width and style:rel-height 
>> not to accept "scale" as a possible value. In fact the behavior seems to 
>> be to default to 100% if anything except percentages are provided.
>>
>>      https://bugs.freedesktop.org/show_bug.cgi?id=45884
>>
>> I reported the bug, but wanted to investigate this issue. However in 
>> opengrok any queries for style:rel-width, scale or a combination give very 
>> few results and nothing I was really expecting.
>>
>> Can someone point me to where I should start debugging this ?
> 
> So I think (but have no proof, I was only searching in opengrok), that
> it is here:
> 
> http://opengrok.libreoffice.org/xref/core/xmloff/source/text/XMLTextFrameContext.cxx#933
> 
> It seems to count on the possibility of the 'scale' value, but why does
> it not work for you needs to be debugged, I suppose.

that's for rel-width; rel-height is apparently handled here:

http://opengrok.libreoffice.org/xref/core/xmloff/source/text/XMLTextFrameContext.cxx#974

http://opengrok.libreoffice.org/xref/core/xmloff/source/text/XMLTextFrameContext.cxx#694

so a property "IsSyncHeightToWidth" is set at the frame; why that
doesn't have the expected result i don't know.

regards,
 michael



More information about the LibreOffice mailing list