Description: Upon opening a Visio drawing (.vsd) containing original text boxes such as (room dimensions,48) "180,0 cm x 394,0 cm" are displayed in LibreOffice Draw "70.9 x 394.0 cm". 70.9 is exactly, in inches, 180,0 centimeters. The first dimension is converted in inches (without showing its unit), while the second dimension is kept unchanged (except the decimal separator). LibreOffice 7.3.1.3 Windows 10 Bug already present in a previous release 7.1.?.? Steps to Reproduce: 1.Open a .vsd file for a house drawing containing "Room Dimensions" in cm text boxes using Microsoft Visio or IE 2.Open the same file with LibreOffice Draw 3.Compare both boxes Actual Results: Trivial Expected Results: Trivial Reproducible: Always User Profile Reset: No Additional Info: In Draw options, the normal unit is set to cm
Created attachment 179098 [details] Housing Visio drawing
Created attachment 179099 [details] Same housing Draw drawing
Inkscape also shows 70.9 x 394.0 cm
Created attachment 179470 [details] Comparison LibreOffice 7.4 master and Internet Explorer
Reproduced in Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: b812150696c574aea0a173d11f178e8d458b1a3e CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3 Locale: es-ES (es_ES.UTF-8); UI: en-US Calc: threaded
Also reproduced in Version: 6.0.0.0.alpha1+ Build ID: 6eeac3539ea4cac32d126c5e24141f262eb5a4d9 CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3; Locale: es-ES (es_ES.UTF-8); Calc: group threaded
The root cause of this issue is missing implementation of CELL_TYPE_PageUnits and CELL_TYPE_DrawingUnits. I will try to fix that. Could you please convert this sample VSD into VSDX, with Visio? I would double check if it is working correctly also there.
The fix for the issue is already created: https://gerrit.libreoffice.org/c/libvisio/+/174909