Issue 86500

Summary: Icons other than png can't be imported
Product: General Reporter: thorsten.martens
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 1.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description thorsten.martens 2008-02-27 06:51:24 UTC
When trying to import a graphic like .wmf or .jpeg (any other than png) as icon,
an errormessage appears, saying that the file could not be imported and that the
file-format could not be interpreted.
Comment 1 carsten.driesner 2008-05-28 16:53:45 UTC
cd->sj: The problem is that the svtools\source\filter.vcl\filter\filter2.cxx
detects the jpeg file but reports height and width as zero. According to
shizoubo this is related to the fact that GraphicDescriptor::ImpDetectJPG(...)
includes the following shortcut:

// compare upper 28 bits
if( 0xffd8ff00 == ( nTemp32 & 0xffffff00 ) )
{
    nFormat = GFF_JPG;
    return TRUE;
}

This shortcut prevents that necessary code, which detects the image height,
width and other parameters, is not processed. Comment-out the shortcut makes the
code work. Please check if this "solution" is a possible way to fix the problem.
You can check this issue if you use one of the jpg files which are provided by
Windows XP or Windows 2003 (e.g C:\WINDOWS\Web\Wallpaper).
Comment 2 sven.jacobi 2008-06-02 16:00:33 UTC
changed target