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 48e6feb0b41bed5abdcba92af917cd2d3e2173b1..6aa8b8d67222e6ede4a6641b5fc1eaac425fe987 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();