Kaydet (Commit) 904ef99d authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#67699: Don't forget to set filter name to the descriptor.

Actually the detection code works just fine without having the detection
service set the filter name here. But it's supposed to.

Change-Id: Ic6a4325b5ceb532d0691781388f66c24cd695ca5
üst 0654a592
...@@ -634,6 +634,16 @@ OUString SAL_CALL ScFilterDetect::detect( uno::Sequence<beans::PropertyValue>& l ...@@ -634,6 +634,16 @@ OUString SAL_CALL ScFilterDetect::detect( uno::Sequence<beans::PropertyValue>& l
if (!pFilter) if (!pFilter)
aTypeName.Erase(); aTypeName.Erase();
if (nIndexOfFilterName == -1)
{
lDescriptor.realloc(nPropertyCount + 1);
lDescriptor[nPropertyCount].Name = "FilterName";
lDescriptor[nPropertyCount].Value <<= pFilter->GetName();
++nPropertyCount;
}
else
lDescriptor[nIndexOfFilterName].Value <<= pFilter->GetName();
return aTypeName; return aTypeName;
} }
......
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