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#90 - SVG Export group nesting

Attached to Project: QCAD
Opened by Anonymous Submitter - Monday, 23 May 2011, 11:01 GMT+2
Last edited by Anonymous Submitter - Monday, 23 May 2011, 16:18 GMT+2
Task Type Bug Report
Category QCAD (main)
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 3 TP1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


The SvgExporter opens a “group” for some entities, but never closes that group. The resulting nesting can get quite deep and does not conform to the original. I tentatively patched the script as below:

--- SvgExporter.js-orig	2011-05-23 10:55:17.239998578 +0200
+++ SvgExporter.js	2011-05-23 10:55:17.239998578 +0200
@@ -226,6 +226,11 @@
 //        RFileExporterAdapter.prototype.exportEntity.call(this, this.realEntity
 //                .data(), false);
 //    }
+    // dimensions and block references are grouped, close the group tag here
+    if (isDimension(entity) || isBlockReferenceEntity(entity)) {
+        this.writeEndElement();
+    }
 SvgExporter.prototype.endEntity = function() {

There might be a better way, but that is what I came up with on short notice.

This task depends upon

Closed by  Anonymous Submitter
Monday, 23 May 2011, 16:18 GMT+2
Reason for closing:  Implemented