Missing index 0 in SvxShapeCollection::getSupportedServiceNames_Static()?

Takeshi Abe tabe at fixedpoint.jp
Tue Apr 24 10:18:24 PDT 2012


Hi all,

I found an unusually overwriting assignment at index 1 in
SvxShapeCollection::getSupportedServiceNames_Static() as follows:
---
diff --git a/svx/source/unodraw/unoshcol.cxx b/svx/source/unodraw/unoshcol.cxx
index 1e02c9c..1c45081 100644
--- a/svx/source/unodraw/unoshcol.cxx
+++ b/svx/source/unodraw/unoshcol.cxx
@@ -246,7 +246,7 @@ uno::Sequence< ::rtl::OUString > SAL_CALL SvxShapeCollection::getSupportedServic
 uno::Sequence< ::rtl::OUString > SvxShapeCollection::getSupportedServiceNames_Static()
 {
     uno::Sequence< ::rtl::OUString > aSeq(2);
-    aSeq.getArray()[1] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.Shapes") );
+    aSeq.getArray()[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.Shapes") );
     aSeq.getArray()[1] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.ShapeCollection") );
     return aSeq;
 }
---
Does it make sense?

Cheers,
-- Takeshi Abe


More information about the LibreOffice mailing list