summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-07-17 14:49:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-07-17 17:31:45 +0100
commit3a2c872b90f4d1af212ec55dcdd4bcd3e16d61ae (patch)
treeb325348fffc48c01ef9a538d3be3e0a7ae82cdac /cui
parentf39e8cadc74573a787641615406777da5a9e5343 (diff)
Resolves: #i122759# prefer the UIName for the list of...
"Always save as" filter names the listbox in the Tools->Options->Load/Save->General->AlwaysSaveAs listbox did not prefer the localized UIName, so sometimes the internal filter name was shown in the user interface even when an UIName was provided. Patch by: Tsutomu Uchino <hanya.runo@gmail.com> (cherry picked from commit 963530a3b78ace2e21cf73c161996f613256b367) Conflicts: cui/source/options/optsave.cxx Change-Id: Id83dd0859275a8b0ac52bfd65bd1fd7dcfb4362e
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optsave.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx
index ada076ea622f..27f7b7885a7c 100644
--- a/cui/source/options/optsave.cxx
+++ b/cui/source/options/optsave.cxx
@@ -539,12 +539,13 @@ static OUString lcl_ExtracUIName(const Sequence<PropertyValue> rProperties)
{
if(!pProperties[nProp].Name.compareToAscii("UIName"))
{
- pProperties[nProp].Value >>= sRet;
- break;
+ if ( pProperties[nProp].Value >>= sRet )
+ break;
}
else if(!pProperties[nProp].Name.compareToAscii("Name"))
{
- pProperties[nProp].Value >>= sRet;
+ if ( !sRet.getLength() )
+ pProperties[nProp].Value >>= sRet;
}
}
return sRet;