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) ...@@ -664,8 +664,8 @@ OUString lcl_ExtracUIName(const Sequence<PropertyValue> rProperties)
{ {
if(!pProperties[nProp].Name.compareToAscii("UIName")) if(!pProperties[nProp].Name.compareToAscii("UIName"))
{ {
pProperties[nProp].Value >>= sRet; if ( pProperties[nProp].Value >>= sRet )
//! break; break;
} }
else if(!pProperties[nProp].Name.compareToAscii("Flags")) else if(!pProperties[nProp].Name.compareToAscii("Flags"))
{ {
...@@ -676,6 +676,7 @@ OUString lcl_ExtracUIName(const Sequence<PropertyValue> rProperties) ...@@ -676,6 +676,7 @@ OUString lcl_ExtracUIName(const Sequence<PropertyValue> rProperties)
} }
else if(!pProperties[nProp].Name.compareToAscii("Name")) else if(!pProperties[nProp].Name.compareToAscii("Name"))
{ {
if ( !sRet.getLength() )
pProperties[nProp].Value >>= sRet; pProperties[nProp].Value >>= 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