The row-height is wrong in rows with optimal-row-hight active when printing or export to pdf with multiline cells in LO 18.104.22.168.
In LO 22.214.171.124 there is no such issue.
System: openSUSE Leap 42.3 x86_64.
libreoffice-126.96.36.199-18.3.2 is OK
libreoffice-188.8.131.52-18.6.2 is NOT ok
Created attachment 136063 [details]
Created attachment 136064 [details]
current result from testcase
Created attachment 136065 [details]
testcase previous version
Created attachment 136066 [details]
result from previous testcase
Happens this was just fixed on master for another issue. Can verify with current build of master > 20170906
Back ports to 5.4 and 5.3 in the works.