[Libreoffice-bugs] [Bug 120728] crash in report editing: insert page number in footer while header is active

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Oct 31 13:30:39 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=120728

Armin Le Grand (CIB) <Armin.Le.Grand at me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|libreoffice-bugs at lists.free |Armin.Le.Grand at me.com
                   |desktop.org                 |

--- Comment #18 from Armin Le Grand (CIB) <Armin.Le.Grand at me.com> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181031/2a3360bb/attachment.html>


More information about the Libreoffice-bugs mailing list