<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 - [EMF+] DrawImagePoints SrcRect support"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=142941">142941</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[EMF+] DrawImagePoints SrcRect support
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>graphics stack
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>frob@df.ru
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
LO doesn't handle DrawImagePoints SrcRect properly.

Steps to Reproduce:
Open attached EMF sample.

Actual Results:
LO draws a piece of green rectangle in the top left corner and blue square in
the middle of the image.

Expected Results:
It should draw green square of the same size as a blue one on the top part of
the image.


Reproducible: Always


User Profile Reset: No



Additional Info:
In this case DrawImagePoints deals with an ObjectImage of the Metafile type. LO
reads SrcRect and uses in in aGDI.Clip call, however it has wrong or no effect
depends on the specific values provided.

This was identified during analysis of EMF+ part of the issue with a file from
<a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - [EMF/EMF+] FILEOPEN Images in PPT and PPTX are narrower"
   href="show_bug.cgi?id=59814">tdf#59814</a>.
Solving this problem should also have a positive impact on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - [EMF/EMF+] FILEOPEN Images in PPT and PPTX are narrower"
   href="show_bug.cgi?id=59814">tdf#59814</a>.</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>