gimp r26892 - in trunk: . plug-ins/common



Author: martinn
Date: Sun Sep  7 15:30:38 2008
New Revision: 26892
URL: http://svn.gnome.org/viewvc/gimp?rev=26892&view=rev

Log:
* 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


Modified:
   trunk/ChangeLog
   trunk/plug-ins/common/file-raw.c

Modified: trunk/plug-ins/common/file-raw.c
==============================================================================
--- trunk/plug-ins/common/file-raw.c	(original)
+++ trunk/plug-ins/common/file-raw.c	Sun Sep  7 15:30:38 2008
@@ -970,10 +970,10 @@
   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 @@
 
   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 @@
 
   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 @@
 
   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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]