View | Details | Raw Unified | Return to bug 148380
Collapse All | Expand All

(-)src/NCstring.cc-dist (-1 / +4 lines)
Lines 438-446 void NCstring::getHotkey( ) const Link Here
438
    wstring::size_type tpos = wstr.find_first_of( L'&' );
438
    wstring::size_type tpos = wstr.find_first_of( L'&' );
439
    if ( tpos != wstring::npos && tpos != wstr.size()-1 )
439
    if ( tpos != wstring::npos && tpos != wstr.size()-1 )
440
    {
440
    {
441
	size_t realpos = 0, t;
442
	for ( t = 0; t < tpos; t++ )
443
	    realpos += wcwidth( wstr[t] );
441
	wstr.erase( tpos, 1 );
444
	wstr.erase( tpos, 1 );
442
	hotk = wstr[tpos];
445
	hotk = wstr[tpos];
443
	hotp = tpos;
446
	hotp = realpos;
444
    }
447
    }
445
}
448
}
446
449

Return to bug 148380