https://bugs.documentfoundation.org/show_bug.cgi?id=133918
Eike Rathke <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|x86-64 (AMD64) |All Status|NEW |ASSIGNED Assignee|[email protected] |[email protected] |desktop.org | Component|Writer |framework --- Comment #15 from Eike Rathke <[email protected]> --- SvxLanguageBox::ChangeHdl() is called for the first character typed (here "i") and rControl.find_text(aStr) returns -1 because (anonymous namespace)::GtkInstanceComboBox::find_text() via find_text_including_mru() searches for an exact match, not start of string, then the following LanguageTag::isValidBcp47() is called which for "i" is not valid, and the function returns. Then (anonymous namespace)::GtkInstanceComboBox::auto_complete() via idleAutoComplete() selects the first matching "Icelandic" entry and through signal SvxLanguageBox::ChangeHdl() is called again, this time GtkInstanceComboBox::find_text() finding the exact match. Same first call of SvxLanguageBox::ChangeHdl() happens if "in" was typed, but then in that round (no exact match) LanguageTag::isValidBcp47() does the canonicalization. There we additionally would need a partial starting match if a full match was not found and select that. -- You are receiving this mail because: You are the assignee for the bug.
