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:
parent
e732c6e6d8
commit
d8b50dd009
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue