[gimp] app: silence a warning in ink tool



commit 8beec385ee9ded19bf0134cd595d8687355428db
Author: Alexia Death <alexiadeath gmail com>
Date:   Sun Sep 11 21:48:25 2011 +0300

    app: silence a warning in ink tool

 app/paint/gimpink.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/app/paint/gimpink.c b/app/paint/gimpink.c
index 6f4ac46..a83cc48 100644
--- a/app/paint/gimpink.c
+++ b/app/paint/gimpink.c
@@ -146,17 +146,18 @@ gimp_ink_paint (GimpPaintCore    *paint_core,
 {
   GimpInk *ink = GIMP_INK (paint_core);
   GimpCoords last_coords;
+  GimpCoords current_coords = *coords;
 
   gimp_paint_core_get_last_coords (paint_core, &last_coords);
-  gimp_paint_core_get_current_coords (paint_core, paint_options, coords);
+  gimp_paint_core_get_current_coords (paint_core, paint_options, &current_coords);
 
   switch (paint_state)
     {
 
     case GIMP_PAINT_STATE_INIT:
 
-      if (coords->x == last_coords.x &&
-          coords->y == last_coords.y)
+      if (current_coords.x == last_coords.x &&
+          current_coords.y == last_coords.y)
         {
           /*  start with new blobs if we're not interpolating  */
 
@@ -184,7 +185,7 @@ gimp_ink_paint (GimpPaintCore    *paint_core,
       break;
 
     case GIMP_PAINT_STATE_MOTION:
-      gimp_ink_motion (paint_core, drawable, paint_options, coords, time);
+      gimp_ink_motion (paint_core, drawable, paint_options, &current_coords, time);
       break;
 
     case GIMP_PAINT_STATE_FINISH:



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