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 |
_______________________________________________ LibreOffice mailing list LibreOffice@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/libreoffice