Set the allowed max values for Width and Height to the size of the image

* plug-ins/common/file-raw.c (load_dialog): Set the allowed max
values for Width and Height to the size of the image to load
instead of an arbitrary max of 4096

svn path=/trunk/; revision=26892
This commit is contained in:
Martin Nordholts 2008-09-07 15:30:38 +00:00
parent 0cc59223c1
commit bf28fc79fe
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2008-09-07 Martin Nordholts <martinn@svn.gnome.org>
* plug-ins/common/file-raw.c (load_dialog): Set the allowed max
values for Width and Height to the size of the image to load
instead of an arbitrary max of 4096.
2008-09-07 Martin Nordholts <martinn@svn.gnome.org>
Bug 551141 "Select all" does not work

View File

@ -970,10 +970,10 @@ load_dialog (const gchar *filename)
GtkWidget *combo;
GtkWidget *button;
GtkObject *adj;
gint32 size;
gint32 file_size;
gboolean run;
size = get_file_info (filename);
file_size = get_file_info (filename);
gimp_ui_init (PLUG_IN_BINARY, TRUE);
@ -1041,7 +1041,7 @@ load_dialog (const gchar *filename)
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, 1,
_("O_ffset:"), -1, 9,
runtime->file_offset, 0, size, 1, 1000, 0,
runtime->file_offset, 0, file_size, 1, 1000, 0,
TRUE, 0.0, 0.0,
NULL, NULL);
@ -1054,7 +1054,7 @@ load_dialog (const gchar *filename)
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, 2,
_("_Width:"), -1, 9,
runtime->image_width, 1, 4096, 1, 10, 0,
runtime->image_width, 1, file_size, 1, 10, 0,
TRUE, 0.0, 0.0,
NULL, NULL);
@ -1067,7 +1067,7 @@ load_dialog (const gchar *filename)
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, 3,
_("_Height:"), -1, 9,
runtime->image_height, 1, 4096, 1, 10, 0,
runtime->image_height, 1, file_size, 1, 10, 0,
TRUE, 0.0, 0.0,
NULL, NULL);