<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 - EDITING: crash in SfxItemSet::GetItemState(unsigned short, bool, SfxPoolItem const**) when pasting comment of closed document"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=117228">117228</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>EDITING: crash in SfxItemSet::GetItemState(unsigned short, bool, SfxPoolItem const**) when pasting comment of closed document
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.1.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>erack@redhat.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>1. open two new Calc documents
2. add some comment to any cell in one document
3. copy that cell to clipboard
4. close the document without saving
5. paste on any cell in the second document => crash

This is almost identical to <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - EDITING Crash in: ScPostIt::CreateCaption(ScAddress const &,SdrCaptionObj const *)"
   href="show_bug.cgi?id=104967">bug 104967</a> that was fixed by forgetting some
caption details owned by the closed document, the crash is just some calls
below ScPostIt::CreateCaption() now.

However, in master/6.1 in ScDocument::~ScDocument() asking
ScDocument::IsClipboardSource() returns false because in ScModule::GetClipDoc()
SfxViewShell::Current() returns nullptr, which it didn't before. Some logic
when view shells are destroyed seem to have changed meanwhile. The effect is
that ClosingClipboardSource() is not called anymore and the caption and item
set items are not forgotten and still point to drawing details of the already
closed document.

Hence, asking for bibisect to find the culprit.</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>