On Tue Mar 14 09:09:40 2023 +0000, Zhiyi Zhang wrote:
The change is reasonable. To verify this, could you provide an example for trigger an occasion when item metrics should have been recalculated? Also, there are some grammar errors in your commit message. You can say "bNoItemMetrics should be reset to TRUE after calling LISTVIEW_DeleteAllItems()."
Sorry! My English is a little poor ^v^. Next,I will give an example to explain why we need to modify it this way: a-Fonts folder there are three files:a folder、b folder and 1.jpg,Use the app "2345 View Manager" in Windows can display all the items as shown below: ![图片1](/uploads/6b0f66d81c8bc7836866afdd0a025f08/图片1.png) But use the app "2345 View Manager" in wine cannot display all the items as shown below: ![图片3](/uploads/1ec5fd19feb963f6acb9f2d5d19eabac/图片3.png) After debugging and analysis, it is finally located because the function LISTVIEW_paint logic does not meet the condition infoPtr ->bNoItemMetrics=true, as shown in the figure below: ![图片4](/uploads/0d328dce1c07ac62f5353f25c74317e4/图片4.png) which results in the same calculation of the location of each file, so the phenomenon we finally see is that only one file is displayed