- Status Closed
- Percent Complete
- Task Type Bug Report
- Category QCAD (main)
-
Assigned To
Andrew - Operating System All
- Severity Low
- Priority Very Low
- Reported Version 3 RC2
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
Attached to Project: QCAD Bugtracker
Opened by Peter - 07.12.2011
Last edited by Andrew - 07.12.2011
Opened by Peter - 07.12.2011
Last edited by Andrew - 07.12.2011
FS#421 - Multiline Text in SVG Exporter PG
Multiline text is in the wrong place. Please see patch below:
— SvgExporterPG.js~ 2011-11-04 22:08:57.000000000 +0100
+++ SvgExporterPG.js 2011-12-07 13:01:43.811533803 +0100
@@ -248,7 +248,8 @@
this.writeStartElement("flowRoot"); // <flowRoot> this.writeFontAttributes(); var bb = this.text.getBoundingBox();
- var pos = this.text.getPosition();
+ var pos = this.text.getPosition(); always (0,0) ?
+ var pos = bb.getCenter(); // still not right, but closer
var x = this.convert(pos.x); var y = this.convert(pos.y); var a = 360 - RMath.rad2deg(this.text.getAngle());
Closed by Andrew
07.12.2011 15:14
Reason for closing: Fixed
Additional comments about closing:
07.12.2011 15:14
Reason for closing: Fixed
Additional comments about closing:
r19941
Better readable patch:
Thanks.
Here's a refactored and fixed method exportMultiLineText: