Draw the envelope name

This commit is contained in:
xenakios 2018-02-28 04:30:28 +02:00
parent 8f747819e9
commit e7011d4acb

View File

@ -88,7 +88,7 @@ void EnvelopeComponent::paint(Graphics& g)
int xcor = getWidth() / 10 * i;
g.drawText(String(hz, 1), xcor, getHeight() - 20, 100, 20, Justification::topLeft);
}
String name = m_name;
String name = m_envelope->GetName();
if (name.isEmpty() == true)
name = "Untitled envelope";
g.drawText(name, 10, 10, getWidth(), getHeight(), Justification::topLeft);