Skip to content

Fix image viewer#978

Merged
arsenetar merged 1 commit into
arsenetar:masterfrom
glubsy:fix_zoom_scrollbar
Mar 15, 2022
Merged

Fix image viewer#978
arsenetar merged 1 commit into
arsenetar:masterfrom
glubsy:fix_zoom_scrollbar

Conversation

@glubsy

@glubsy glubsy commented Mar 12, 2022

Copy link
Copy Markdown
Contributor

When zooming in or out, the value computed might be a float instead
of an int, which is what the QScrollBar expects as argument in its setValue method.
Simply casting to int should be enough here.

When zooming in or out, the value computed might be a float instead
of an int, which is what the QScrollBar expect for its setValue method.
Simply casting to int should be enough here.
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.7% 0.7% Duplication

@arsenetar arsenetar merged commit efc99ee into arsenetar:master Mar 15, 2022
@glubsy glubsy deleted the fix_zoom_scrollbar branch March 15, 2022 19:12
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.

2 participants