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 25b7af27e0b82ddfe3a3daac10deb0f0dc04390d..b5aa6fb3c900f905c0a13b9d3c48f88ebcd75e9a 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;