sc/source/ui/unoobj/scdetect.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+)
New commits: commit 904ef99d87af1bfefe43f6a84f04f019bd082754 Author: Kohei Yoshida <kohei.yosh...@gmail.com> Date: Mon Aug 19 16:35:42 2013 -0400 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 diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx index c161072..bdc9ba8 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits