editeng/source/misc/svxacorr.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 08a3a5ee5b64105bb1b690d5fa4da83bbe220337
Author: Michael Meeks <[email protected]>
Date:   Wed Dec 12 22:16:53 2012 +0000

    fdo#58060 - use empty-string for LANGUAGE_DONTKNOW ie. acorr_.dat
    
    Change-Id: I399dcc41484c8b86f13c80bc1e92af919c9aeaff

diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index aaee953..4e59f09 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1870,6 +1870,10 @@ String SvxAutoCorrect::GetAutoCorrFileName( LanguageType 
eLang,
                                             sal_Bool bNewFile, sal_Bool bTst ) 
const
 {
     String sRet, sExt( LanguageTag( eLang ).getBcp47() );
+
+    // fdo#58060 user added dictionary - saved as acorr_.dat
+    if (eLang == LANGUAGE_DONTKNOW)
+        sExt = String();
     sExt.Insert('_', 0);
     sExt.AppendAscii( ".dat" );
     if( bNewFile )
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to