TextDocumentLayout::GetTextBounds(): Forget to offset...

... by the vertical offset of the ParagraphLayout containing
the text offset.
This commit is contained in:
Stephan Aßmus
2013-12-07 00:17:59 +01:00
parent 60eb71494a
commit ab86f2c321
@@ -122,6 +122,8 @@ TextDocumentLayout::GetTextBounds(int32 textOffset, float& x1, float& y1,
}
layout.layout->GetTextBounds(textOffset, x1, y1, x2, y2);
y1 += layout.y;
y2 += layout.y;
return;
}