summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-22 02:53:10 +0200
committerEike Rathke <erack@redhat.com>2013-09-22 02:53:47 +0200
commita727e93d10e7514bf9d962059fb91e36e362e0cc (patch)
tree0d5d51268706bdd02205b92c9d8efd61722d67a7 /svx
parent6fa84d196834e041550ec4de426865b8a6038cfa (diff)
insert on-the-fly-ID if select requested
Change-Id: I2935b211aaee345827d89c63de207c7e4fbc78f4
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/langbox.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx
index e24bb8073d4c..3b3eca6e8f65 100644
--- a/svx/source/dialog/langbox.cxx
+++ b/svx/source/dialog/langbox.cxx
@@ -456,6 +456,9 @@ void SvxLanguageBox::SelectLanguage( const LanguageType eLangType, sal_Bool bSel
sal_uInt16 nAt = TypeToPos_Impl( nLang, *this );
+ if ( nAt == LISTBOX_ENTRY_NOTFOUND )
+ nAt = InsertLanguage( nLang ); // on-the-fly-ID
+
if ( nAt != LISTBOX_ENTRY_NOTFOUND )
SelectEntryPos( nAt, bSelect );
}