text bounds fixed again

This commit is contained in:
honfika@gmail.com
2014-12-21 21:52:47 +01:00
parent 54d252dab9
commit 8edc8ba22d
2 changed files with 1 additions and 3 deletions

View File

@@ -354,7 +354,7 @@ public abstract class TextTag extends CharacterTag implements DrawableTag {
// shapeNum: 1
SHAPE shape = glyphs.get(entry.glyphIndex);
RECT glyphBounds = shape.getBounds();
if (!shape.shapeRecords.isEmpty() && !(shape.shapeRecords.get(0) instanceof EndShapeRecord)) {
if (glyphBounds.Xmax > glyphBounds.Xmin && glyphBounds.Ymax > glyphBounds.Ymin) {
ExportRectangle rect = mat.transform(new ExportRectangle(glyphBounds));
if (result == null) {
result = rect;