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:
parent
c3a218ab49
commit
eac4f9112f
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue