<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 - Copy-Paste doesn't work when Impress is not the focused instance"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=127017">127017</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Copy-Paste doesn't work when Impress is not the focused instance
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.3.0.4 release
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux (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>sdk
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hi-angel@yandex.ru
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=153492" name="attach_153492" title="Script to get instances of LO Impress and LO Calc, then copy a slide in LO Impress">attachment 153492</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=153492&action=edit" title="Script to get instances of LO Impress and LO Calc, then copy a slide in LO Impress">[details]</a></span>
Script to get instances of LO Impress and LO Calc, then copy a slide in LO
Impress

As the title says. The bug seems to be only triggered when more than one
instance of LO is involved.

# Steps to reproduce

1. Run `soffice --impress
--accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"`, and
dismiss "Select a Template" window.
2. Press menu `File → New → Spreadsheet`, so an LO Calc window appears.
3. (Important) focus LO Calc, and for further steps do not give focus to LO
Impress anymore (you can unfocus localc, just make sure it was the last focused
LO instance).
4. Run the attached script as `python test.py`

## Expected

Script successfully exits, and you can see a slide in LO Impress got copied.

## Actual

Script exits with IndexOutOfBoundsException, because the slide wasn't
successfully copied.

# Additional information

You can make it work by making sure the last focused LO instance was the LO
Impress.</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>