Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
7aa6bd42
Commit
7aa6bd42
authored
Feb 22, 2021
by
Laurent Montel
Browse files
Use qFuzzyCompare here
parent
d73ae7e2
Pipeline
#51850
passed with stage
in 42 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/viewer/viewer_p.cpp
View file @
7aa6bd42
...
...
@@ -938,7 +938,7 @@ void ViewerPrivate::applyZoomValue(qreal factor, bool saveConfig)
{
if
(
mZoomActionMenu
)
{
if
(
factor
>=
10
&&
factor
<=
300
)
{
if
(
mZoomActionMenu
->
zoomFactor
()
!=
factor
)
{
if
(
!
qFuzzyCompare
(
mZoomActionMenu
->
zoomFactor
()
,
factor
)
)
{
mZoomActionMenu
->
setZoomFactor
(
factor
);
mZoomActionMenu
->
setWebViewerZoomFactor
(
factor
/
100.0
);
if
(
saveConfig
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment