IDE: mode matrix: fixed changing type of last row

git-svn-id: trunk@41578 -
This commit is contained in:
mattias 2013-06-07 11:59:09 +00:00
parent 26525d735a
commit f68f6c159f
3 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,6 @@
Options frame for build mode matrix options.
ToDo:
- bug: change type in last row does not work
- undo: combine changes while editing a cell
}
unit Compiler_ModeMatrix;

View File

@ -1044,7 +1044,7 @@ var
NewType: String;
begin
Item:=Sender as TMenuItem;
if fTypePopupMenuRow>=Matrix.RowCount then exit;
if (fTypePopupMenuRow<=0) or (fTypePopupMenuRow>Matrix.RowCount) then exit;
if Matrix.Rows[fTypePopupMenuRow-1] is TGroupedMatrixValue then begin
ValueRow:=TGroupedMatrixValue(Matrix[fTypePopupMenuRow-1]);
NewType:=TypeColumn.PickList.Names[Item.MenuIndex];

View File

@ -272,7 +272,7 @@ end;
------------------------------------------------------------------------------}
procedure TMenuItem.DoClicked(var msg);
begin
// CheckChildrenHandles; <- This is already called when menuitem is created.
// CheckChildrenHandles; <- This is already called when menuitem is created.
if not (csDesigning in ComponentState) then
begin
InitiateActions;