summaryrefslogtreecommitdiffstats
path: root/src/extension
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-07-24 23:31:44 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-07-24 23:31:44 +0000
commitfae4db6d2c975173a6768bd4984eb707265f4e43 (patch)
tree5f2a213743a58ba45d47aeb5e49f67d3e0b78981 /src/extension
parentastyle (diff)
parent3D box tool: the shift key must not prevent snapping of the vanishing point. ... (diff)
downloadinkscape-fae4db6d2c975173a6768bd4984eb707265f4e43.tar.gz
inkscape-fae4db6d2c975173a6768bd4984eb707265f4e43.zip
update to trunk
(bzr r13645.1.106)
Diffstat (limited to 'src/extension')
-rw-r--r--src/extension/internal/latex-text-renderer.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/extension/internal/latex-text-renderer.cpp b/src/extension/internal/latex-text-renderer.cpp
index 1026f51ad..5933dd526 100644
--- a/src/extension/internal/latex-text-renderer.cpp
+++ b/src/extension/internal/latex-text-renderer.cpp
@@ -409,7 +409,8 @@ Flowing in rectangle is possible, not in arb shape.
return; // don't know how to handle non-rect frames yet. is quite uncommon for latex users i think
}
- Geom::Rect framebox = frame->getRect() * transform();
+ // We will transform the coordinates
+ Geom::Rect framebox = frame->getRect();
// get position and alignment
// Align on topleft corner.
@@ -429,7 +430,10 @@ Flowing in rectangle is possible, not in arb shape.
// no need to add LaTeX code for standard justified output :)
break;
}
- Geom::Point pos(framebox.corner(3)); //topleft corner
+
+ // The topleft Corner was calculated after rotating the text which results in a wrong Coordinate.
+ // Now, the topleft Corner is rotated after calculating it
+ Geom::Point pos(framebox.corner(0) * transform()); //topleft corner
// determine color and transparency (for now, use rgb color model as it is most native to Inkscape)
bool has_color = false; // if the item has no color set, don't force black color
@@ -472,7 +476,9 @@ Flowing in rectangle is possible, not in arb shape.
os << "\\rotatebox{" << degrees << "}{";
}
os << "\\makebox(0,0)" << alignment << "{";
- os << "\\begin{minipage}{" << framebox.width() << "\\unitlength}";
+
+ // Scale the x width correctly
+ os << "\\begin{minipage}{" << framebox.width() * transform().expansionX() << "\\unitlength}";
os << justification;
// Walk through all spans in the text object.