Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,7 @@ public ColumnHeaderImageListIndexer(ColumnHeader ch) {

public override ImageList ImageList {
get {
if (owner != null && owner.ListView != null) {
return owner.ListView.SmallImageList;
}
return null;
return owner.ListView?.SmallImageList;
}
set {
Debug.Assert(false, "We should never set the image list");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1404,19 +1404,22 @@ public Rectangle Bounds {

internal bool CustomBackColor {
get {
return style != null && !style.backColor.IsEmpty;
Debug.Assert(style != null, "Should have checked CustomStyle");
return !style.backColor.IsEmpty;
}
}

internal bool CustomFont {
get {
return style != null && style.font != null;
Debug.Assert(style != null, "Should have checked CustomStyle");
return style.font != null;
}
}

internal bool CustomForeColor {
get {
return style != null && !style.foreColor.IsEmpty;
Debug.Assert(style != null, "Should have checked CustomStyle");
return !style.foreColor.IsEmpty;
}
}

Expand Down