Issue 86500 - Icons other than png can't be imported
Summary: Icons other than png can't be imported
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2008-02-27 06:51 UTC by thorsten.martens
Modified: 2013-08-07 15:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
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