[Libreoffice-commits] core.git: sc/source

Szymon Kłos (via logerrit) logerrit at kemper.freedesktop.org
Wed Aug 28 13:15:47 UTC 2019


 sc/source/ui/docshell/docsh4.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit efb5973ad31735212a165f6ec72467ae6b6ebd43
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Jul 24 11:55:33 2019 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Wed Aug 28 15:13:40 2019 +0200

    Handle LANGUAGE_NONE case
    
    Change-Id: I4dde96d488fc1e956bc2385c5e311eeadacd4be0
    Reviewed-on: https://gerrit.libreoffice.org/78226
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
    Tested-by: Jenkins

diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index e9b3dde362b6..e5878182a424 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -2005,8 +2005,12 @@ void ScDocShell::GetState( SfxItemSet &rSet )
 
                     GetDocument().GetLanguage( eLatin, eCjk, eCtl );
                     OUString sLanguage = SvtLanguageTable::GetLanguageString(eLatin);
-                    if (comphelper::LibreOfficeKit::isActive())
-                        sLanguage += ";" + LanguageTag(eLatin).getLanguage();
+                    if (comphelper::LibreOfficeKit::isActive()) {
+                        if (eLatin == LANGUAGE_NONE)
+                            sLanguage += ";-";
+                        else
+                            sLanguage += ";" + LanguageTag(eLatin).getLanguage();
+                    }
                     rSet.Put(SfxStringItem(nWhich, sLanguage));
                 }
                 break;


More information about the Libreoffice-commits mailing list