View Issue Details

IDProjectCategoryView StatusLast Update
0003308JEDI VCL00 JVCL Componentspublic2005-11-22 05:20
ReporterDeathMADAssigned ToAHUser 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version3.10 
Summary0003308: Design Editor for TJvImageList produce design-time error - "Invalid typecast"
DescriptionCode in file JvDsgnEditors

procedure TJvImageListEditor.ExecuteVerb(Index: Integer);
begin
  if Designer <> nil then
    case Index of
      0:
        if EditImageList(Component as TImageList) then //---error, TJvImageList
                                                       //inherits from
                                                       //TCustomImageList, but
                                                       // not from TImageList
          Designer.Modified;
      1:
        SaveAsBitmap(TImageList(Component));
    end;
end;

Solution - "if EditImageList(TImageList(Component)) then"
But that is ugly IMHO.
TagsNo tags attached.

Activities

AHUser

2005-11-22 05:20

developer   ~0008115

Fixed in CVS.

The hard typecast should be OK, because the VCL's TCustomImageList editor is also the normal TImageList editor.

Issue History

Date Modified Username Field Change
2005-11-10 00:45 DeathMAD New Issue
2005-11-22 05:20 AHUser Status new => resolved
2005-11-22 05:20 AHUser Resolution open => fixed
2005-11-22 05:20 AHUser Assigned To => AHUser
2005-11-22 05:20 AHUser Note Added: 0008115