diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-17 12:25:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-17 12:25:11 +0100 |
commit | 3099c70b11c7e5b80fe4dbe3dc99171fb38c6fc2 (patch) | |
tree | 63699b525800b2c6708e90b817853bb60be5f6d8 /forms/source/component/File.cxx | |
parent | 5229726b4d4e7d76f410d221f8f8cd8abcfd5a19 (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.cxx | 5 |
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; } |