fixed bug with double warning when editing CE draw areas when using level template
authorHolger Schemel <info@artsoft.org>
Fri, 27 Jan 2017 19:16:15 +0000 (20:16 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 27 Jan 2017 19:16:15 +0000 (20:16 +0100)
src/editor.c

index 25b7af2..b5aa6fb 100644 (file)
@@ -11073,7 +11073,7 @@ static void HandleDrawingAreas(struct GadgetInfo *gi)
          SetElementButton(lx, ly, new_element, button);
        }
       }
-      else
+      else if (!button_release_event)
       {
        int type_id = gi->custom_type_id;
        int pos = sx * drawingarea_info[type_id].area_ysize + sy;