[Libreoffice-commits] .: editeng/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 27 13:01:51 PST 2012


 editeng/source/items/textitem.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit cb523b62a4a63b70054d7a16385faf5f3a76be28
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Nov 27 21:42:32 2012 +0100

    SvxLanguageItem::PutValue: empty locale is not LANGUAGE_NONE
    
    Change-Id: I8d788f53b54a7429124a653417d422db300238d7

diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index 25f998b..d5846a0 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -2634,10 +2634,7 @@ bool SvxLanguageItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
             if(!(rVal >>= aLocale))
                 return sal_False;
 
-            if (!aLocale.Language.isEmpty() || !aLocale.Country.isEmpty())
-                SetValue( LanguageTag( aLocale ).getLanguageType( false));
-            else
-                SetValue(LANGUAGE_NONE);
+            SetValue( LanguageTag( aLocale ).getLanguageType( false));
         }
         break;
     }


More information about the Libreoffice-commits mailing list