Fix canvas size button set item borders

We must not activate HAS_TEXT flag on widgets without text on XML files processing the mnemonic character.
This commit is contained in:
David Capello 2017-03-09 12:00:32 -03:00
parent 4eab4cc6b6
commit 81bcc07457

View File

@ -1295,6 +1295,10 @@ void Widget::setMnemonic(int mnemonic)
void Widget::processMnemonicFromText(int escapeChar)
{
// Avoid calling setText() when the widget doesn't have the HAS_TEXT flag
if (!hasText())
return;
std::string newText;
if (!m_text.empty())
newText.reserve(m_text.size());