vcl/source/control/field2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 19648eca2d9cd729251af5ddfca7aae2dd8c7e14 Author: Eike Rathke <[email protected]> AuthorDate: Tue Sep 6 21:02:13 2022 +0200 Commit: Eike Rathke <[email protected]> CommitDate: Wed Sep 7 00:21:57 2022 +0200 Use XCharacterClassification::getCharacterType() instead of getStringType() Change-Id: I0bbd196a8691fb72a1f091af8825df749bfc7cb4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139535 Reviewed-by: Eike Rathke <[email protected]> Tested-by: Jenkins diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx index 24bc1f73e528..89efabf08c3f 100644 --- a/vcl/source/control/field2.cxx +++ b/vcl/source/control/field2.cxx @@ -158,7 +158,7 @@ static bool ImplIsPatternChar( sal_Unicode cChar, char cEditMask ) try { OUString aCharStr(cChar); - nType = ImplGetCharClass()->getStringType( aCharStr, 0, aCharStr.getLength(), + nType = ImplGetCharClass()->getCharacterType( aCharStr, 0, Application::GetSettings().GetLanguageTag().getLocale() ); } catch (const css::uno::Exception&)
