You've already forked lazarus-ccr
fpspreadsheet: Fix cells being pasted in grid from clipboard when worksheet is protected.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6847 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1031,7 +1031,6 @@ begin
|
||||
fmt.NumberFormatIndex := destSheet.Workbook.AddNumberFormat(nfs);
|
||||
end;
|
||||
end;
|
||||
|
||||
destSheet.WriteCellFormat(AToCell, fmt);
|
||||
end;
|
||||
end;
|
||||
|
@ -4662,12 +4662,15 @@ begin
|
||||
VK_F2:
|
||||
FEnhEditMode := true;
|
||||
VK_DELETE:
|
||||
if not FReadOnly then begin
|
||||
if (not FReadOnly) and (goEditing in Options) then begin
|
||||
if (ssCtrl in Shift) then
|
||||
Worksheet.DeleteSelection
|
||||
else
|
||||
Worksheet.EraseSelection(true);
|
||||
end;
|
||||
VK_X, VK_V:
|
||||
if (Shift = [ssCtrl]) and (Worksheet.IsProtected or not (goEditing in Options)) then
|
||||
Key := 0;
|
||||
end;
|
||||
|
||||
inherited;
|
||||
|
Reference in New Issue
Block a user