13
0

small ArdourButton optimization

This commit is contained in:
Robin Gareus 2016-04-08 15:53:59 +02:00
parent 8c81808db7
commit c4e610d091

View File

@ -172,6 +172,9 @@ ArdourButton::set_layout_font (const Pango::FontDescription& fd)
void void
ArdourButton::set_text (const std::string& str) ArdourButton::set_text (const std::string& str)
{ {
if (_text == str) {
return;
}
_text = str; _text = str;
if (!is_realized()) { if (!is_realized()) {
return; return;