Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect alternative images being used
With embedded resources: gtc-solution.png gtc-solution@2x.png gtc-solution~contrast.png gtc-solution-filter.png gtc-solution-filter@2x.png gtc-solution-filter~contrast.png The ParseImageHints method would find an image match when the baseName was gtc-solution and the fileName was gtc-solution@2x.png or gtc-solution~contrast.png. The problem was the original check used fileName.StartsWith(baseName) which allowed this mismatch. Changing the check to compare the fileName before the first delimiter found with the baseName avoids an incorrect image being used.
- Loading branch information