diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-04-07 21:59:04 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-04-07 21:59:04 +0200 |
commit | 5bd53db1aebc00c19be7dd6fd9c93391baca032f (patch) | |
tree | 305690b206d49f54169cb76e2d10981f28436003 | |
parent | 717553f9cd5ee6a0e4385f963b0fd9ba5c566ec8 (diff) |
Fix variable reassigned before the old value has been used
Change-Id: I7e862741e576d7a00b0fe09e4e8ab4ce5048e18b
-rw-r--r-- | sw/source/ui/shells/textsh1.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx index f0c07c7476cf..b5e01bd3c8eb 100644 --- a/sw/source/ui/shells/textsh1.cxx +++ b/sw/source/ui/shells/textsh1.cxx @@ -1314,9 +1314,8 @@ void SwTextShell::GetState( SfxItemSet &rSet ) // get keyboard language String aKeyboardLang; - LanguageType nLang = LANGUAGE_DONTKNOW; SwEditWin& rEditWin = GetView().GetEditWin(); - nLang = rEditWin.GetInputLanguage(); + LanguageType nLang = rEditWin.GetInputLanguage(); if (nLang != LANGUAGE_DONTKNOW && nLang != LANGUAGE_SYSTEM) aKeyboardLang = aLangTable.GetString( nLang ); |