Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify instantiation of image handles in ImageFileNameProvider #1877

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ShahzaibIbrahim
Copy link
Contributor

@ShahzaibIbrahim ShahzaibIbrahim commented Mar 5, 2025

Initializing image handle only using initNative method for both the cases where zoom is equal to the filezoom and when its not equal to the filezoom. The handle in case of not equal is created temporarily and destroyed later before calling init.

Dependent on:

Copy link
Contributor

github-actions bot commented Mar 5, 2025

Test Results

   509 files  ±0     509 suites  ±0   8m 38s ⏱️ - 1m 42s
 4 308 tests ±0   4 291 ✅  - 4   11 💤 ±0  1 ❌  - 1  5 🔥 +5 
16 576 runs  ±0  16 462 ✅  - 4  108 💤 ±0  1 ❌  - 1  5 🔥 +5 

For more details on these failures and errors, see this check.

Results for commit 7dad43f. ± Comparison against base commit 7f381e8.

♻️ This comment has been updated with latest results.

@ShahzaibIbrahim ShahzaibIbrahim force-pushed the master-235 branch 2 times, most recently from 8d3985b to c51c9c9 Compare March 10, 2025 10:37
@ShahzaibIbrahim ShahzaibIbrahim changed the title Using initNative in all cases and refactoring initNative Method Unify instantiation of image handles in ImageFileNameProvider Mar 10, 2025
@ShahzaibIbrahim ShahzaibIbrahim marked this pull request as ready for review March 10, 2025 10:39
Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a failing test for image initialization on Windows, so the change does to not seem to be correct as is.

Initializing image handle only using initNative method for both the
cases where zoom is equal to the filezoom and when its not equal to the
filezoom. The handle in case of not equal is created temporarily and
destroyed later before calling init.
@ShahzaibIbrahim
Copy link
Contributor Author

Tests that are failing will be resolved once #1898 is merged. So it makes this PR dependent.

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR now basically reverts the commit made to Image recently pushed on master. Please adapt to current behavior of the class first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify instantation of image handles with ImageFileNameProvider
3 participants