https://bugs.documentfoundation.org/show_bug.cgi?id=120728
Armin Le Grand (CIB) <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|[email protected] |[email protected]
|desktop.org |
--- Comment #18 from Armin Le Grand (CIB) <[email protected]> ---
Similar to other stuff:
svxcorelo.dll!SvxDrawPage::CreateShapeByTypeAndInventor(unsigned short nType,
SdrInventor nInventor, SdrObject * pObj, SvxDrawPage * mpPage, const
rtl::OUString & referer) Line 795
(c:\lo\work04_64\svx\source\unodraw\unopage.cxx:795)
svxcorelo.dll!SdrObject::getUnoShape() Line 2812
(c:\lo\work04_64\svx\source\svdraw\svdobj.cxx:2812)
rptlo.dll!rptui::OObjectBase::getUnoShapeOf(SdrObject & _rSdrObject) Line 462
(c:\lo\work04_64\reportdesign\source\core\sdr\RptObject.cxx:462)
rptlo.dll!rptui::OUnoObject::getUnoShape() Line 896
(c:\lo\work04_64\reportdesign\source\core\sdr\RptObject.cxx:896)
rptuilo.dll!rptui::OReportController::createControl(const
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & _aArgs,
const com::sun::star::uno::Reference<com::sun::star::report::XSection> &
_xSection, const rtl::OUString & _sFunction, unsigned short _nObjectId) Line
3167 (c:\lo\work04_64\reportdesign\source\ui\report\ReportController.cxx:3167)
At the SdrObject (a rptui::OUnoObject) no SdrPage is set die to not being
added, so
SdrObject::getUnoShape()
uses the static call
SvxDrawPage::CreateShapeByTypeAndInventor
instead of the dynamic one above it. That call does not know the 'ReportDesign'
inventor and fails.
One idea is that a factory that does have no possibility to add creators (here:
for ReportDesign) is a bad design by itself.
Another one is the usual - debug the old code, check where/when the SDrObject
gets added to a SdrPage and see if this can be done early...
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs