fpspreadsheet: second attempt to fix worksheetgrid writing edited cell to wrong cell when grid is on MDI form (issue #37596).

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7644 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-09-05 22:33:26 +00:00
parent 96dc6b9939
commit 8b5cc6b3d9

View File

@ -3370,7 +3370,8 @@ procedure TsCustomWorksheetGrid.EditorDoGetValue;
var
cell: Pcell;
begin
if (Editor<>nil) and Editor.Visible and (FOldEditorText <> FEditText) then
inherited;
if (FOldEditorText <> FEditText) then
begin
cell := Worksheet.GetCell(GetWorksheetRow(Row), GetWorksheetCol(Col));
if Worksheet.IsMerged(cell) then
@ -3382,7 +3383,6 @@ begin
FEditText := '';
FOldEditorText := '';
end;
inherited;
end;
function TsCustomWorksheetGrid.EditorByStyle(Style: TColumnButtonStyle): TWinControl;