summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-06-16 09:53:37 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-06-16 09:53:37 +0200
commit00647682535858694ab42cc90e0db6142053df3b (patch)
tree61f8d5f775850724a8d3c1a85e67d91996a34b0d
parentfs33a: compile errors on unxlngi6.pro / unxmacxi.pro (diff)
downloadcore-00647682535858694ab42cc90e0db6142053df3b.tar.gz
core-00647682535858694ab42cc90e0db6142053df3b.zip
fs33a: fixed supportsService
-rw-r--r--toolkit/source/controls/unocontrol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx
index 1abe0b34004f..4db6dbb17b81 100644
--- a/toolkit/source/controls/unocontrol.cxx
+++ b/toolkit/source/controls/unocontrol.cxx
@@ -1463,7 +1463,7 @@ sal_Bool UnoControl::supportsService( const ::rtl::OUString& rServiceName ) thro
Sequence< ::rtl::OUString > aSNL = getSupportedServiceNames();
const ::rtl::OUString* pArray = aSNL.getConstArray();
- const ::rtl::OUString* pArrayEnd = aSNL.getConstArray();
+ const ::rtl::OUString* pArrayEnd = aSNL.getConstArray() + aSNL.getLength();
for (; pArray != pArrayEnd; ++pArray )
if( *pArray == rServiceName )
break;