mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 15:41:45 +02:00
IdeIntf: Remove an incorrect test about Bitmap from TIDEMenuItem.ConsistencyCheck.
git-svn-id: trunk@51459 -
This commit is contained in:
parent
3948707261
commit
95534c8596
@ -879,22 +879,10 @@ procedure TIDEMenuItem.ConsistencyCheck;
|
||||
RaiseGDBException(s);
|
||||
end;
|
||||
|
||||
procedure RaiseBitmapError;
|
||||
var
|
||||
s: String;
|
||||
begin
|
||||
s:='TIDEMenuItem.ConsistencyCheck Name="'+Name+'" Caption="'+DbgStr(Caption)+'"';
|
||||
debugln(s);
|
||||
debugln(['RaiseBitmapError HasBitmap=',HasBitmap,' MenuItem.HasBitmap=',MenuItem.HasBitmap]);
|
||||
debugln(['RaiseBitmapError ImageIndex=',ImageIndex,' MenuItem.ImageIndex=',MenuItem.ImageIndex]);
|
||||
debugln(['RaiseBitmapError ImageList=',dbgsname(GetImageList),' MenuItem.ImageIndex=',DbgSName(MenuItem.GetImageList)]);
|
||||
RaiseError;
|
||||
end;
|
||||
|
||||
begin
|
||||
if MenuItem<>nil then begin
|
||||
if MenuItem.HasBitmap<>HasBitmap then
|
||||
RaiseBitmapError;
|
||||
debugln(['TIDEMenuItem.ConsistencyCheck: Bitmap=', FBitmap,
|
||||
', ImageIndex=', ImageIndex, ', ImageList=', GetImageList]);
|
||||
if MenuItem.Enabled<>Enabled then
|
||||
RaiseError;
|
||||
if MenuItem.Visible<>Visible then
|
||||
|
Loading…
Reference in New Issue
Block a user