DXF files with these heading lines are no more recognized as Draw files

Hi,

Windows 10 LibreOffice 25.2.5 (Italian 64 bit)
Windows 11 LibreOffice 24.8.7.2 (Italian 64 bit)

DXF files with the following heading lines are no more recognized as Draw files, so LibreOffice opens them in Writer.

Those two heading lines are inserted by Potrace
999
DXF data, created by potrace 1.16, written by Peter Selinger 2001-2019

Those two heading lines are inserted by Inkscape when Saving as … Desktop Cutting Plotter (AutoCAD DXF R12) (*.dxf)
999
“DXF R12 Output” (www.mydxf.blogspot.com)

If the DXF file begins with these two lines is always recognized as Draw file:
0
SECTION

Anyway, if I Drag and Drop those files on a Draw blank page, they are recognized as drawings.

But in previous LibreOffice versions, Draw has always recognized them.

Having access to various Windows 10 (Italian 64 bit) pcs, with different LibreOffice versions,
these are the testing results:

Those DXF files are recognized as Draw files in these LibreOffice versions:
5.3.3.2
6.3.5.2
7.1.7.2

Those DXF files are NO MORE recognized as Draw files in these LibreOffice versions:
24.2.5.2
24.8.7.2
25.2.4.3
25.2.5

To help doing some testing, I have attached a ZIP file with two DXF sample files, one OK and one NOT OK.

Sample DXF files.zip (6.0 KB)

Gianni

You may file a bug, to be submitted directly to Bugzilla:
https://bugs.documentfoundation.org/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED&bug_severity=normal

Filed as bug on Bugzilla.

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