<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:Armin.Le.Grand@me.com" title="Armin Le Grand (CIB) <Armin.Le.Grand@me.com>"> <span class="fn">Armin Le Grand (CIB)</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - crash in report editing: insert page number in footer while header is active"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=120728">bug 120728</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>ASSIGNED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Assignee</td>
           <td>libreoffice-bugs@lists.freedesktop.org
           </td>
           <td>Armin.Le.Grand@me.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - crash in report editing: insert page number in footer while header is active"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=120728#c18">Comment # 18</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - crash in report editing: insert page number in footer while header is active"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=120728">bug 120728</a>
              from <span class="vcard"><a class="email" href="mailto:Armin.Le.Grand@me.com" title="Armin Le Grand (CIB) <Armin.Le.Grand@me.com>"> <span class="fn">Armin Le Grand (CIB)</span></a>
</span></b>
        <pre>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...</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>