QCAD - 2D CAD System.
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#318 - Text of dimensions label in SVG PG export
Opened by Peter (hungerburg) - Saturday, 15 October 2011, 19:02 GMT+2
Last edited by Andrew (andrew) - Monday, 17 October 2011, 20:37 GMT+2
The labels of dimensions in PG exporter are moved half text-height. Thats a bit much, and actually, no such movement looks more true to the display of same in QCAD itself.
--- SvgExporterPG.js.orig 2011-10-15 18:57:29.994666881 +0200 +++ SvgExporterPG.js 2011-10-15 18:57:39.284666834 +0200 @@ -434,7 +434,7 @@ //debugger; var angle = this.text.getAngle(); //this.text.setAngle(entity.getAngle()); - var offset = RVector.createPolar(this.text.getHeight()/2, angle + Math.PI/2); + var offset = RVector.createPolar(0, angle + Math.PI/2); this.text.move(offset); this.textColor = entity.getColor(); this.exportText();
Monday, 17 October 2011, 20:37 GMT+2
Reason for closing: Fixed