Kaydet (Commit) 8d281104 authored tarafından Noel Grandin's avatar Noel Grandin

fix broken service name "com.sun.star.rendering.VCLCanvas"

The service is actually called "com.sun.star.rendering.Canvas.VCL"
It looks like the code in SidebarPanel is a copy'n'paste from
PresenterHelper, and it looks like the PresenterHelper code has been
broken since 2008.

Change-Id: I78a0fa3bf9333d6473a743cffdb1dc41a7a1266d
üst 2e152c24
......@@ -215,7 +215,7 @@ Reference<rendering::XCanvas> SAL_CALL PresenterHelper::createCanvas (
xFactory->createInstanceWithArguments(
!rsOptionalCanvasServiceName.isEmpty()
? rsOptionalCanvasServiceName
: OUString("com.sun.star.rendering.VCLCanvas"),
: OUString("com.sun.star.rendering.Canvas.VCL"),
aArg),
UNO_QUERY);
}
......
......@@ -105,7 +105,7 @@ cssu::Reference<css::rendering::XCanvas> SAL_CALL SidebarPanel::getCanvas (void)
const ::comphelper::ComponentContext aComponentContext (::comphelper::getProcessServiceFactory());
mxCanvas = Reference<rendering::XCanvas>(
aComponentContext.createComponentWithArguments(
"com.sun.star.rendering.VCLCanvas",
"com.sun.star.rendering.Canvas.VCL",
aArg),
UNO_QUERY);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment