<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 - OS/2 multi-image bitmap does not display correctly"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116439">116439</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>OS/2 multi-image bitmap does not display correctly
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.3.0 release
          </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>chris.sherlock79@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
An OS/2 bitmap that uses a BitmapArray (multiple bitmaps) does not display
correctly.

Steps to Reproduce:
1. Open Draw
2. Click on Insert -> Image
3. Choose "marbles.bmp"

Actual Results:  
marbles.bmp does not display correctly. 

Expected Results:
marbles.bmp should show the best image, but instead it looks like a "cropped
image", I suspect because it has picked the wrong image. 


Reproducible: Always


User Profile Reset: No



Additional Info:
marbles.bmp is the standard test image used for BA type OS/2 bitmaps. Currently
we detect that the magic number of the bitmap is "BA" (0x4142), but then we
don't seem to actually go through each bitmap image to find the correct one.

Further info on OS/2 bitmap formats can be found here:

<a href="http://www.fileformat.info/format/os2bmp/egff.htm">http://www.fileformat.info/format/os2bmp/egff.htm</a>

The spot where we read in and handle the BA magic number is here:

<a href="https://opengrok.libreoffice.org/xref/core/vcl/source/gdi/dibtools.cxx#1061">https://opengrok.libreoffice.org/xref/core/vcl/source/gdi/dibtools.cxx#1061</a>


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36</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>