summaryrefslogtreecommitdiff
path: root/forms/source/component/File.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-17 12:25:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-17 12:25:11 +0100
commit3099c70b11c7e5b80fe4dbe3dc99171fb38c6fc2 (patch)
tree63699b525800b2c6708e90b817853bb60be5f6d8 /forms/source/component/File.cxx
parent5229726b4d4e7d76f410d221f8f8cd8abcfd5a19 (diff)
Fix various XServiceInfo implementations
...to match what is recorded in the .component files Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
Diffstat (limited to 'forms/source/component/File.cxx')
-rw-r--r--forms/source/component/File.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/forms/source/component/File.cxx b/forms/source/component/File.cxx
index 2c6f97df8460..c42625775b93 100644
--- a/forms/source/component/File.cxx
+++ b/forms/source/component/File.cxx
@@ -70,10 +70,11 @@ Sequence<Type> OFileControlModel::_getTypes()
StringSequence OFileControlModel::getSupportedServiceNames() throw(RuntimeException, std::exception)
{
StringSequence aSupported = OControlModel::getSupportedServiceNames();
- aSupported.realloc(aSupported.getLength() + 1);
+ aSupported.realloc(aSupported.getLength() + 2);
OUString*pArray = aSupported.getArray();
- pArray[aSupported.getLength()-1] = FRM_SUN_COMPONENT_FILECONTROL;
+ pArray[aSupported.getLength()-2] = FRM_SUN_COMPONENT_FILECONTROL;
+ pArray[aSupported.getLength()-1] = FRM_COMPONENT_FILECONTROL;
return aSupported;
}