X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Feditor%2Ff_main.pas;h=e2635344a0977677c10d8bf4e71ec0a2470fcfb9;hb=3ea052bd6b0f429986d2ebae74d04a01875ac9fc;hp=a810a63637c87848381a1c051228b1cfd91a1f7c;hpb=1f9dfb4b1c61b040c35706dba61a12e8ed627449;p=d2df-editor.git diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas index a810a63..e263534 100644 --- a/src/editor/f_main.pas +++ b/src/editor/f_main.pas @@ -1482,7 +1482,7 @@ begin 3: str := _lc[I_PROP_TR_SHOT_AIM_3]; else str := _lc[I_PROP_TR_SHOT_AIM_0]; end; - with ItemProps[InsertRow(_lc[I_PROP_TR_SHOT_AIM], str, True)-1] do + with ItemProps[InsertRow(_lc[I_PROP_TR_SHOT_AIM], str, True)] do begin EditStyle := esPickList; ReadOnly := True; @@ -1776,6 +1776,7 @@ begin RemoveSelectFromObjects(); MainForm.miUndo.Enabled := UndoBuffer <> nil; + MainForm.RecountSelectedObjects(); end; procedure Undo_Add(ObjectType: Byte; ID: DWORD; Group: Boolean = False);