The implementation of GetImageLogicalSize() overload taking the image index returned correct answer for this individual image, but was wrong when used in the control with multiple images with different logical sizes. This resulted in the actual bitmap being drawn, as returned by GetImageBitmapFor(), being of different size than the size returned by this function, as GetImageBitmapFor() uses the best ("consensus") size for all images, which is also returned by GetImageLogicalSize() overload not taking the image.
Solve this by simply getting rid of the overload taking the image and replacing all existing calls to it with the calls to the other overload. This is backwards-incompatible, but this function was only added in 3.3 and removing it is a lesser evil than either leaving a function which can only be misused, or keeping the unused image index parameter which would be confusing.
Closes #26391.
https://github.com/wxWidgets/wxWidgets/pull/26397
(6 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@vadz pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()