- 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 hungerburg - 07.12.2011
Last edited by andrew - 07.12.2011
Opened by hungerburg - 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
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Better readable patch:
--- 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);Thanks.
Here's a refactored and fixed method exportMultiLineText: