summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2022-08-31 21:54:51 +0200
committerEike Rathke <erack@redhat.com>2022-09-01 11:30:56 +0200
commit24d382a18ec2ade0d9e9b9c6e6c3e86bed6cde14 (patch)
tree5ba1b255428b67e969319882aa5f0c2db7d403a2 /svx
parentebb73e9e220433be9326dde4ac2284eba5e42558 (diff)
Resolves: tdf#150370 Accept 'art-x-...' private-use input in language box
... for artificial constructed languages. Change-Id: Ifd0f2ca63738eb9bbe78361cd3fdf507f3e397f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139135 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/langbox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx
index ead5f11404a8..5db46c695493 100644
--- a/svx/source/dialog/langbox.cxx
+++ b/svx/source/dialog/langbox.cxx
@@ -430,7 +430,7 @@ IMPL_LINK(SvxLanguageBox, ChangeHdl, weld::ComboBox&, rControl, void)
else
{
OUString aCanonicalized;
- bool bValid = LanguageTag::isValidBcp47( aStr, &aCanonicalized, LanguageTag::PrivateUse::DISALLOW);
+ bool bValid = LanguageTag::isValidBcp47( aStr, &aCanonicalized, LanguageTag::PrivateUse::ALLOW_ART_X);
m_eEditedAndValid = (bValid ? EditedAndValid::Valid : EditedAndValid::Invalid);
if (bValid && aCanonicalized != aStr)
{