After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 333207 - Open as Layer ignores explicit file type.
Open as Layer ignores explicit file type.
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.2.x
Other Windows
: Normal normal
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2006-03-03 01:40 UTC by Rick Yorgason
Modified: 2008-01-15 13:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rick Yorgason 2006-03-03 01:40:02 UTC
When you use the "Open as Layer" function and set the file type explicitly (through the "Select File Type" option on the "Open Image as Layer" dialogue), The Gimp ignores this value and decides based on the file extension.  This is most problematic when attempting to open a raw image, since there's no associated extensions for that.

Tested on: 2.2.8 and 2.3.7

Steps to reproduce:
1) Create a new image.
2) File->Open as Layer
3) Select a file with an abnormal extension.
4) Explicitly set the file type in the "Select File Type" box.
Comment 1 Sven Neumann 2006-03-03 19:53:53 UTC
Fixed in the HEAD branch:

2006-03-03  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/fileops.pdb: 
	* app/dialogs/file-open-dialog.c
	* app/display/gimpdisplayshell-dnd.c
	* app/file/file-open.[ch]
	* app/widgets/gimplayertreeview.c: pass the selected load procedure
	to file_open_layer() or NULL if none is selected. Fixes bug #333207.

	* app/pdb/fileops_cmds.c: regenerated.

I tried to merge the changes back into the 2.2 branch but almost all hooks failed and I don't feel like manually merging the changes. Let's close it as FIXED.