QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help > Check for Updates)


FS#1321 - dxflib: Handles not parsed correctly

Attached to Project: QCAD
Opened by Andrew (andrew) - Tuesday, 08 December 2015, 14:59 GMT+2
Last edited by Andrew (andrew) - Tuesday, 08 December 2015, 15:37 GMT+2
Task Type Bug Report
Category dxflib
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Low
Priority Normal
Reported Version 3.12.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


I did noticed a bug in the lib: Indeed, the handle numbers that DL_Dxf is parsing are in most case incorrect.
I believe this is due to the way then handle number is parsed in DL_Dxf::processDXFGroups.
The handle is parsed by calling the function getIntValue, which itself calls the function toInt to convert the handle from std::string to int by calling the function std::strtol(handle, NULL, 10).
However, the handle numbers in a dxf file are stored as hexadecimal.
I wrote a quick and easy fix to this issue, just tell me if you are interested!

This task depends upon

Closed by  Andrew (andrew)
Tuesday, 08 December 2015, 15:37 GMT+2
Reason for closing:  Fixed
Additional comments about closing:  https://github.com/qcad/qcad/commit/3a64 8082b96d5d1167d8c34627d9b45a20fe3d90