Examples: Prevent merged header cells in merged_cells demo being drawn as selected.

git-svn-id: trunk@63790 -
This commit is contained in:
wp 2020-08-19 08:20:33 +00:00
parent e9f700554a
commit 02e9b21883

View File

@ -174,7 +174,7 @@ procedure TMCStringGrid.PrepareCanvas(aCol, aRow: Integer;
var
L, T, R, B: Integer;
begin
if IsMerged(ACol, ARow, L, T, R, B) and
if IsMerged(ACol, ARow, L, T, R, B) and not (gdFixed in AState) and
(Col >= L) and (Col <= R) and (Row >= T) and (Row <= B) and
not ((ACol = Col) and (ARow = Row))
then