Description: Image is larger on DOCX file open compared to ODT (on screen), whereas dialogs show the same measurement Steps to Reproduce: 1. Open the attached file 2. Save to DOCX 3. File reload 4. Now open to ODT 5. And switch back and forward between both windows. Notice odd difference Actual Results: size difference Expected Results: This worked before 5.3 Reproducible: Always User Profile Reset: No Additional Info: Found in Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community Build ID: 239b4bb27fd8db26e8416045b3015688a8b1b0ae CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win Locale: nl-NL (nl_NL); UI: en-US Calc: CL and in 5.3 not in 5.2
Created attachment 172843 [details] Example file
Created attachment 172844 [details] Screencast
Created attachment 172847 [details] Bibisect log Bisected to: author Justin Luth <justin_luth@sil.org> 2016-11-02 15:15:55 +0300 committer Justin Luth <justin_luth@sil.org> 2016-11-03 19:02:41 +0000 commit 5d9d0f3c979732ade57b9c4c4960dd030ffdc9f9 (patch) tree 5fec72a40be7dbf15f208498494213cd6f59c114 parent 2a818a0aafac218ca09bb079d7f2cf0879385e4a (diff) there is a function for that: CalcLineSpace(xx, bEvenIfNoLine) https://cgit.freedesktop.org/libreoffice/core/commit/?id=5d9d0f3c979732ade57b9c4c4960dd030ffdc9f9
I confirm it with Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 949658028e722e5d2657b503eb20e16e41dbd8cf CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL Image is larger, because it is cropped -0,02cm on every side Steps to Reproduce: 1. Open the attached file 2. Image Properties => Tab Crop => Crop 0,00cm on each side 2. Save to DOCX 3. File reload 4. Image Properties => Tab Crop => Crop -,02cm on each side => Image appears larger
You missed adding me as a CC. Just stumbled across it now. Unfortunately, that commit just hides the real issue which was bug 41542. Prior to this time, the "border spacing" was ignored when there were no borders, but that violated ODF specs. So the .03 padding was missing. Now the ODT has "shrunk" minimally to honour that setting. IIRC, MS formats handle this padding differently, so it needs to be emulated. The difference here is so minor it seems irrelevant.
I should have made it more clear the both the bug and the identified commit are not the problem, but only exposed existing stuff.
*** This bug has been marked as a duplicate of bug 90070 ***