Fix demoting elements while moving up.

This commit is contained in:
Daniel Kraus 2015-08-12 22:54:29 +02:00
parent a9d0e8ee7e
commit 3a615eda8b

View File

@ -509,7 +509,6 @@ namespace zaaReloaded2.ViewModels
FormatElementBase model = lastSelectedElement.RevealModelObject() as FormatElementBase; FormatElementBase model = lastSelectedElement.RevealModelObject() as FormatElementBase;
ControlElementBase modelAbove = _settings.Elements[index - 1] as ControlElementBase; ControlElementBase modelAbove = _settings.Elements[index - 1] as ControlElementBase;
_settings.Elements.RemoveAt(index); _settings.Elements.RemoveAt(index);
modelAbove.Children.Add(model);
} }
} }
else else