Commit b8503e19 authored by Juha Manninen's avatar Juha Manninen
Browse files

Menueditor: Fix error when moving menu items. Issue #27849, patch from Michl.

git-svn-id: trunk@49172 -
parent 9d7274a0
......@@ -1994,6 +1994,8 @@ begin
DMenuItem.NextItem:=TempMI;
if (DMenuItem.ParentMenu <> nil) then
DMenuItem.ParentMenu.SubMenu:=DMenuItem;
if (TempMI.NextItem <> nil) then
TempMI.NextItem.PrevItem:=TempMI;
if (DMenuItem.PrevItem <> nil) then
DMenuItem.PrevItem.NextItem:=DMenuItem;
Result:=1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment