1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Fixes bug in the introjucer where converting a text to a path adds a small offset

This commit is contained in:
hogliux 2015-05-01 11:59:21 +01:00
parent e732c6e6d8
commit d8b50dd009

View file

@ -331,9 +331,13 @@ public:
void convertToPath()
{
jassert (dynamic_cast <PaintRoutineEditor*> (getParentComponent()) != nullptr);
font = FontPropertyComponent::applyNameToFont (typefaceName, font);
const Rectangle<int> r (getCurrentAbsoluteBounds());
const Rectangle<int> r =
getCurrentBounds (Rectangle<int> (((PaintRoutineEditor*) getParentComponent())
->getComponentArea()).withPosition (0,0));
GlyphArrangement arr;
arr.addCurtailedLineOfText (font, text,