fTriggerIndex was still a byte index in BMenuItem::SetTrigger() - this one
fixes bug #1506 once and for all :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22476 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -265,7 +265,7 @@ BMenuItem::SetTrigger(char trigger)
|
|||||||
pos = strchr(Label(), trigger);
|
pos = strchr(Label(), trigger);
|
||||||
}
|
}
|
||||||
if (pos != NULL) {
|
if (pos != NULL) {
|
||||||
fTriggerIndex = pos - Label();
|
fTriggerIndex = UTF8CountChars(Label(), pos - Label());
|
||||||
fTrigger = tolower(UTF8ToCharCode(&pos));
|
fTrigger = tolower(UTF8ToCharCode(&pos));
|
||||||
} else {
|
} else {
|
||||||
fTrigger = 0;
|
fTrigger = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user