fixed bug with not updating element list after copy or exchange of CE
authorHolger Schemel <info@artsoft.org>
Thu, 26 Jan 2017 09:13:15 +0000 (10:13 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 26 Jan 2017 09:13:15 +0000 (10:13 +0100)
src/editor.c

index 48e6feb..6aa8b8d 100644 (file)
@@ -9309,11 +9309,9 @@ static void DrawPaletteWindow()
 
 static void UpdateCustomElementGraphicGadgets()
 {
-  struct ElementInfo *ei = &element_info[properties_element];
   int i;
 
-  ei->gfx_element = (ei->use_gfx_element ? ei->gfx_element_initial :
-                    properties_element);
+  InitElementPropertiesGfxElement();
 
   ModifyEditorElementList();
   RedrawDrawingElements();