// Edit button released
        public virtual void OnEditEnd()
        {
            if (General.Interface.IsActiveWindow)
            {
                List <Linedef> linedefs = mode.GetSelectedLinedefs();
                DialogResult   result   = General.Interface.ShowEditLinedefs(linedefs);
                if (result == DialogResult.OK)
                {
                    foreach (Linedef l in linedefs)
                    {
                        if (l.Front != null)
                        {
                            if (mode.VisualSectorExists(l.Front.Sector))
                            {
                                BaseVisualSector vs = (BaseVisualSector)mode.GetVisualSector(l.Front.Sector);
                                vs.UpdateSectorGeometry(false);
                            }
                        }

                        if (l.Back != null)
                        {
                            if (mode.VisualSectorExists(l.Back.Sector))
                            {
                                BaseVisualSector vs = (BaseVisualSector)mode.GetVisualSector(l.Back.Sector);
                                vs.UpdateSectorGeometry(false);
                            }
                        }
                    }

                    mode.RebuildElementData();
                }
            }
        }