rnd-20030429-1-src
[rocksndiamonds.git] / src / editor.c
index 0c2fc7de127c0d1f32f698ad28f6342b1c939a8e..3f1f49098d7d62bdb91d4409d2597ad543005932 100644 (file)
@@ -5020,7 +5020,8 @@ static void HandleControlButtons(struct GadgetInfo *gi)
     case GADGET_ID_FLOOD_FILL:
     case GADGET_ID_GRAB_BRUSH:
     case GADGET_ID_PICK_ELEMENT:
-      last_drawing_function = drawing_function;
+      if (drawing_function != GADGET_ID_PICK_ELEMENT)
+       last_drawing_function = drawing_function;
       drawing_function = id;
       draw_with_brush = FALSE;
       break;