gimp r26760 - in trunk: . app/paint-funcs



Author: neo
Date: Mon Aug 25 16:30:37 2008
New Revision: 26760
URL: http://svn.gnome.org/viewvc/gimp?rev=26760&view=rev

Log:
2008-08-25  Sven Neumann  <sven gimp org>

	* app/paint-funcs/scale-region.c: don't scale in several steps 
if
	interpolation is GIMP_INTERPOLATION_NONE.



Modified:
   trunk/ChangeLog
   trunk/app/paint-funcs/scale-region.c

Modified: trunk/app/paint-funcs/scale-region.c
==============================================================================
--- trunk/app/paint-funcs/scale-region.c	(original)
+++ trunk/app/paint-funcs/scale-region.c	Mon Aug 25 16:30:37 2008
@@ -294,8 +294,9 @@
   gint         levelx       = 0;
   gint         levely       = 0;
 
-  /* determine scaling levels */
-  scale_determine_levels (srcPR, dstPR, &levelx, &levely);
+  if (interpolation != GIMP_INTERPOLATION_NONE)
+    scale_determine_levels (srcPR, dstPR, &levelx, &levely);
+
   max_progress = scale_determine_progress (srcPR, dstPR, levelx, levely);
 
   pixel_region_init_data (&tmpPR0,
@@ -438,8 +439,9 @@
   gint         levelx       = 0;
   gint         levely       = 0;
 
-  /* determine scaling levels */
-  scale_determine_levels (srcPR, dstPR, &levelx, &levely);
+  if (interpolation != GIMP_INTERPOLATION_NONE)
+    scale_determine_levels (srcPR, dstPR, &levelx, &levely);
+
   max_progress = scale_determine_progress (srcPR, dstPR, levelx, levely);
 
   if (levelx == 0 && levely == 0)



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