View | Details | Raw Unified | Return to bug 41653
Collapse All | Expand All

(-)src/scratchpad/src/org/apache/poi/hwpf/usermodel/Picture.java (-5 / +7 lines)
Lines 223-233 Link Here
223
    } else if (matchSignature(_dataStream, TIFF, pictureBytesStartOffset) ||
223
    } else if (matchSignature(_dataStream, TIFF, pictureBytesStartOffset) ||
224
               matchSignature(_dataStream, TIFF1, pictureBytesStartOffset)) {
224
               matchSignature(_dataStream, TIFF1, pictureBytesStartOffset)) {
225
      return "tiff";
225
      return "tiff";
226
    } else if (matchSignature(content, WMF1, 0) ||
226
    } else {
227
               matchSignature(content, WMF2, 0)) {
227
      fillImageContent();
228
      return "wmf";
228
      if (matchSignature(content, WMF1, 0) || matchSignature(content, WMF2, 0)) {
229
    } else if (matchSignature(content, EMF, 0)) {
229
        return "wmf";
230
      return "emf";
230
      } else if (matchSignature(content, EMF, 0)) {
231
        return "emf";
232
      }
231
    }
233
    }
232
    // TODO: DIB, PICT
234
    // TODO: DIB, PICT
233
    return "";
235
    return "";

Return to bug 41653