Kaydet (Commit) 963530a3 authored tarafından Herbert Dürr's avatar Herbert Dürr

#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>
üst 17f5e014
......@@ -664,8 +664,8 @@ 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("Flags"))
{
......@@ -676,7 +676,8 @@ OUString lcl_ExtracUIName(const Sequence<PropertyValue> rProperties)
}
else if(!pProperties[nProp].Name.compareToAscii("Name"))
{
pProperties[nProp].Value >>= sRet;
if ( !sRet.getLength() )
pProperties[nProp].Value >>= sRet;
}
}
return sRet;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment