Skip to content
Open
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 @@ -5805,8 +5805,12 @@ void updateOrientation () {
}
}
}
long hImageList = imageList.getHandle(getAutoscalingZoom());
OS.SendMessage (handle, OS.TVM_SETIMAGELIST, OS.TVSIL_NORMAL, hImageList);
// Image list is only set at OS when the first column contains images,
// thus check if an image list is set at the OS to refresh and otherwise skip it
if (OS.SendMessage (handle, OS.TVM_GETIMAGELIST, OS.TVSIL_NORMAL, 0) != 0) {
long hImageList = imageList.getHandle(getAutoscalingZoom());
OS.SendMessage (handle, OS.TVM_SETIMAGELIST, OS.TVSIL_NORMAL, hImageList);
}
}
if (hwndHeader != 0) {
if (headerImageList != null) {
Expand Down
Loading