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


Hi!

I'm trying to write a simple unit test but this time it is confusing.
For my odt-document the layout.xml says:

There are 6 "txt" portions  in the body and "info"->"bounds"->"top" values are

top="2269"
top="6022"
top="6502"
top="6882"
top="7262"
top="7642"

In the unit test, I have

    SAL_DEBUG("1:  " << parseDump("/root/page/body/txt[1]/infos/bounds", "top").toInt32());     SAL_DEBUG("2:  " << parseDump("/root/page/body/txt[2]/infos/bounds", "top").toInt32());     SAL_DEBUG("3:  " << parseDump("/root/page/body/txt[3]/infos/bounds", "top").toInt32());     SAL_DEBUG("4:  " << parseDump("/root/page/body/txt[4]/infos/bounds", "top").toInt32());     SAL_DEBUG("5:  " << parseDump("/root/page/body/txt[5]/infos/bounds", "top").toInt32());     SAL_DEBUG("6:  " << parseDump("/root/page/body/txt[6]/infos/bounds", "top").toInt32());

which returns

debug:15038:15038: 1: 2269
debug:15038:15038: 2: 5689
debug:15038:15038: 3: 6169
debug:15038:15038: 4: 6549
debug:15038:15038: 5: 6929
debug:15038:15038: 6: 7309


So, the first one is equal, but the other ones are shifted by 333.

How can this be caused? Is this a bug?

Regards,
Patrick





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.