https://bugs.documentfoundation.org/show_bug.cgi?id=168265
Bug ID: 168265
Summary: FILEOPEN: DXF files with comments lines are no longer
recognized as drawings and are therefore not opened by
Draw but by Writer as text files
Product: LibreOffice
Version: 7.5 all versions
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Draw
Assignee: [email protected]
Reporter: [email protected]
Description:
DXF files with comments lines exhibit the bug.
In a DXF file, comments are specifically defined lines of text preceded by the
group code 999.
This code signifies that the subsequent line of text is a comment and should be
ignored by DXF-aware software.
Reference:
Autodesk AutoCAD 2024 / DXF Group Codes in Numerical Order Reference
https://help.autodesk.com/view/OARX/2024/ENU/?guid=GUID-3F0380A5-1C15-464D-BC66-2C5F094BCFB9
Comments examples:
These lines are inserted on top of the DXF file by Potrace
https://potrace.sourceforge.net/
999
DXF data, created by potrace 1.16, written by Peter Selinger 2001-2019
These lines are inserted on top of the DXF file by Inkscape when Saving as
Desktop Cutting Plotter (AutoCAD DXF R12) (*.dxf)
999
“DXF R12 Output” (www.mydxf.blogspot.com)
Anyway, if I Drag and Drop those files on a Draw blank page, they are
recognized as drawings.
Note:
I must add that if the comments are not on top of the DXF file, LibreOffice
don't like it at all an throw various errors:
Filtro immagine non trovato
[OK]
Errore generale.
Errore generale di I/O.
[OK]
but this is a case that in real life I have never encountered.
Testing:
To help doing some testing, I have attached two DXF sample files, one with
comments and one without.
Steps to Reproduce:
1.Open a DXF file containing comment lines
2.
3.
Actual Results:
The file opens in Writer as a text file
Expected Results:
The file should opens in Draw as a drawing
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 7.5.0.1 (X86_64) / LibreOffice Community
Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df
CPU threads: 2; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: CL threaded
I have tested many but not all LibreOffice versions.
These versions don't exhibit the bug:
5.3.3.2
6.3.5.2
7.1.7.2
7.2.7.2
7.3.7.2
7.4.7.2
These versions exhibit the bug:
7.5.0.1
7.5.7.1
7.5.9.2
7.6.7.2
24.2.5.2
24.8.7.2
25.2.4.3
25.2.5
25.2.5.2
25.8.1.1
--
You are receiving this mail because:
You are the assignee for the bug.