summaryrefslogtreecommitdiff
path: root/sd/util
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-03-11 11:36:03 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-03-11 11:47:02 +0100
commit86ce77b9255ab92cceb6164828c90b0b3e1ee9ed (patch)
tree382d9cecb653e2d7f9e4c2ff33d2f983debf6b40 /sd/util
parent6d42dc0e7ce90c0996a28d8ee084baa183c90457 (diff)
Don't adertise PresenterCanvas as com.sun.star.rendering.Canvas service
Window::ImplGetCanvas (vcl/source/window/window.cxx) tries to obtain such a Canvas service (passing in 6 initialization arguments), and the CanvasFactory in canvas/source/factory/cf_service.cxx apparently goes through the implementations advertised to implement that service, looking for the best match. At least for Linux-rpm_deb-x86_64@70-TDF-dbg tinderbox, it somehow manages to pick the PresenterCanvas (instead of one of the more obvious choices among the variants in canvas/soruce/{cairo,directx,vcl}), but which only epects 5 initialization arguments, so CppunitTest_cppcanvas_emfplus fails with a "PresenterCanvas: invalid number of arguments" exception. (And the choice of the PresenterCanvas looks more than dubious anyway.) Normally, instances of PresenterCanvas appear to be created "directly" from PresenterHelper::createSharedCanvas (sd/source/ui/presenter/PresenterHelper.cxx) so it shouldn't hurt to no longer adertise this implementation as providing the Canvas service---and it might not even be necessary to make it available via the service manager at all. Change-Id: Ie76bfc87fec51b6d5361930204e55ef9cb80370e
Diffstat (limited to 'sd/util')
-rw-r--r--sd/util/sd.component1
1 files changed, 0 insertions, 1 deletions
diff --git a/sd/util/sd.component b/sd/util/sd.component
index a3e531a657d7..74b66bc6d6f7 100644
--- a/sd/util/sd.component
+++ b/sd/util/sd.component
@@ -33,7 +33,6 @@
</implementation>
<implementation name="com.sun.star.comp.Draw.PresenterCanvasFactory"
constructor="com_sun_star_comp_Draw_PresenterCanvasFactory_get_implementation">
- <service name="com.sun.star.rendering.Canvas"/>
</implementation>
<implementation name="com.sun.star.comp.Draw.PresenterHelper"
constructor="com_sun_star_comp_Draw_PresenterHelper_get_implementation">