summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-08-19 16:35:42 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-08-19 16:38:47 -0400
commit904ef99d87af1bfefe43f6a84f04f019bd082754 (patch)
tree7888c2205e8af68d6a74e7420b9645d01677872f
parent0654a592df05df676540764c004bd5b4e8b693a9 (diff)
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
-rw-r--r--sc/source/ui/unoobj/scdetect.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index c161072ebe7f..bdc9ba8a6a57 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -634,6 +634,16 @@ OUString SAL_CALL ScFilterDetect::detect( uno::Sequence<beans::PropertyValue>& l
if (!pFilter)
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;
}