From e7011d4acb87c69bd5f374d380e1d8cfa844aa5d Mon Sep 17 00:00:00 2001 From: xenakios Date: Wed, 28 Feb 2018 04:30:28 +0200 Subject: [PATCH] Draw the envelope name --- Source/envelope_component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/envelope_component.cpp b/Source/envelope_component.cpp index a1211d9..4e8ee44 100644 --- a/Source/envelope_component.cpp +++ b/Source/envelope_component.cpp @@ -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);