Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Icons other than png can't be imported | ||
---|---|---|---|
Product: | General | Reporter: | thorsten.martens |
Component: | code | Assignee: | 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
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). changed target |