[Libufo-commits] ufo-0.5/src/widgets ucompound.cpp,1.10,1.11
Status: Beta
Brought to you by:
schmidtjf
|
From: Johannes S. <sch...@us...> - 2005-09-02 13:25:05
|
Update of /cvsroot/libufo/ufo-0.5/src/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13107/src/widgets Modified Files: ucompound.cpp Log Message: Fix for mnemonic detection in setText. Index: ucompound.cpp =================================================================== RCS file: /cvsroot/libufo/ufo-0.5/src/widgets/ucompound.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ucompound.cpp 5 Jul 2005 11:30:30 -0000 1.10 --- ucompound.cpp 2 Sep 2005 13:24:56 -0000 1.11 *************** *** 102,107 **** std::string::size_type index = text.find('&'); if (index < text.length() - 1 && text[index + 1] != '&') { - updateMnemonic(); - std::string newtext(text); newtext.erase(index, 1); --- 102,105 ---- *************** *** 109,112 **** --- 107,112 ---- getCompoundModel()->text = newtext; getCompoundModel()->acceleratorIndex = index; + + updateMnemonic(); } else { getCompoundModel()->text = text; |