Skip to content

Commit

Permalink
Apply small simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStevns committed Jun 29, 2024
1 parent 8c0bae3 commit fed31f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/layeropacitydialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ void LayerOpacityDialog::fade(OpacityFadeType fadeType)
if (initialOpacity >= 1.0) {
initialOpacity = 0.0;
}
qreal value = 1.0 - initialOpacity;
opacityStepper = value / imageCount;
opacityStepper = (1.0 - initialOpacity) / imageCount;
break;
}
case OpacityFadeType::OUT:
Expand Down

0 comments on commit fed31f7

Please sign in to comment.