<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Assertion failed when inserting rectangle shape in spreadsheet"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108919">108919</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed when inserting rectangle shape in spreadsheet
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>baron@caesar.elte.hu
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>105537
          </td>
        </tr></table>
      <p>
        <div>
        <pre>With a debug build, add a rectangle to the sheet.
As soon as you press left button on the sheet there is an assertion failed
error.

This is the assert that fails:
assert(svl::detail::validRange(p.wid1, p.wid2));
<a href="http://opengrok.libreoffice.org/xref/core/svl/source/items/itemset.cxx#152">http://opengrok.libreoffice.org/xref/core/svl/source/items/itemset.cxx#152</a>

Both p.wid1 and p.wid2 are 0, that's the reason why validRange(...) returns
false.
Those wid's are apparently WhichID's, and the following seems to be the line
where they're initialized as 0 (and it fails a few levels deeper):

pObj->SetMergedItem( SvxAdjustItem( SvxAdjust::Center, 0 ) );
<a href="http://opengrok.libreoffice.org/xref/core/sc/source/ui/drawfunc/fuconcustomshape.cxx#202">http://opengrok.libreoffice.org/xref/core/sc/source/ui/drawfunc/fuconcustomshape.cxx#202</a>

I have no idea what this whole thing is about...

Observed using master build (ce6b877ba89ae4193f7a719a7dfa4bb45ecd04e4) /
Windows 7.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Assertion failed crashes"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=105537">Bug 105537</a>] [META] Assertion failed crashes
              </li>
          </ul>
        </div>
        <br>

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

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