Apache OpenOffice (AOO) Bugzilla – Issue 86500
Icons other than png can't be imported
Last modified: 2013-08-07 15:31:14 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.
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