We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ae97a commit 0c900b4Copy full SHA for 0c900b4
source/main.pas
@@ -3666,7 +3666,7 @@ procedure TMainForm.actDataPreviewUpdate(Sender: TObject);
3666
// Enable or disable ImageView action
3667
Grid := ActiveGrid;
3668
(Sender as TAction).Enabled := (Grid <> nil)
3669
- and (Grid.FocusedColumn-1 <> NoColumn)
+ and (Grid.FocusedColumn > 0) // may be NoColumn/-1 or InvalidColumn/-2
3670
and (GridResult(Grid).DataType(Grid.FocusedColumn-1).Category = dtcBinary)
3671
end;
3672
0 commit comments