1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix for the TextLayout when drawing at non-origin coords

This commit is contained in:
jules 2017-11-08 15:15:22 +00:00
parent c3a218ab49
commit eac4f9112f

View file

@ -218,8 +218,8 @@ void TextLayout::draw (Graphics& g, Rectangle<float> area) const
auto& context = g.getInternalContext();
auto clip = context.getClipBounds();
auto clipTop = (float) clip.getY();
auto clipBottom = (float) clip.getBottom();
auto clipTop = clip.getY() - origin.y;
auto clipBottom = clip.getBottom() - origin.y;
for (auto* line : lines)
{