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:
@ -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>
|
2008-09-07 Martin Nordholts <martinn@svn.gnome.org>
|
||||||
|
|
||||||
Bug 551141 – "Select all" does not work
|
Bug 551141 – "Select all" does not work
|
||||||
|
@ -970,10 +970,10 @@ load_dialog (const gchar *filename)
|
|||||||
GtkWidget *combo;
|
GtkWidget *combo;
|
||||||
GtkWidget *button;
|
GtkWidget *button;
|
||||||
GtkObject *adj;
|
GtkObject *adj;
|
||||||
gint32 size;
|
gint32 file_size;
|
||||||
gboolean run;
|
gboolean run;
|
||||||
|
|
||||||
size = get_file_info (filename);
|
file_size = get_file_info (filename);
|
||||||
|
|
||||||
gimp_ui_init (PLUG_IN_BINARY, TRUE);
|
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,
|
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, 1,
|
||||||
_("O_ffset:"), -1, 9,
|
_("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,
|
TRUE, 0.0, 0.0,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
|
||||||
@ -1054,7 +1054,7 @@ load_dialog (const gchar *filename)
|
|||||||
|
|
||||||
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, 2,
|
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, 2,
|
||||||
_("_Width:"), -1, 9,
|
_("_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,
|
TRUE, 0.0, 0.0,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
|
||||||
@ -1067,7 +1067,7 @@ load_dialog (const gchar *filename)
|
|||||||
|
|
||||||
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, 3,
|
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, 3,
|
||||||
_("_Height:"), -1, 9,
|
_("_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,
|
TRUE, 0.0, 0.0,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user