Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Oct 23, 2021
1 parent 6bc8c97 commit ea4266e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/pl/asie/zima/image/gui/ZimaFrontendSwing.java
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ public ZimaProfileSettings getSettings() {

settings.setContrastReduction(this.profile.getProperties().get(ZimaConversionProfile.TRIX_CONTRAST_REDUCTION));
settings.setAccurateApproximate(this.profile.getProperties().get(ZimaConversionProfile.TRIX_ACCURATE_APPROXIMATE));
settings.setImageConverterType(this.profile.getProperties().get(ZimaConversionProfile.IMAGE_CONVERTER_TYPE));

settings.setAspectRatioPreservationMode(this.profile.getProperties().get(ZimaConversionProfile.ASPECT_RATIO_PRESERVATION_MODE));

Expand Down Expand Up @@ -1053,6 +1054,10 @@ public void setSettings(ZimaProfileSettings settings) {
this.profile.getProperties().set(ZimaConversionProfile.TRIX_CONTRAST_REDUCTION, settings.getContrastReduction());
}

if (settings.getImageConverterType() != null) {
this.profile.getProperties().set(ZimaConversionProfile.IMAGE_CONVERTER_TYPE, settings.getImageConverterType());
}

if (settings.getAccurateApproximate() != null) {
this.profile.getProperties().set(ZimaConversionProfile.TRIX_ACCURATE_APPROXIMATE, settings.getAccurateApproximate());
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/pl/asie/zima/image/gui/ZimaProfileSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import lombok.Data;
import pl.asie.zima.image.ElementRule;
import pl.asie.zima.image.ImageConverterType;
import pl.asie.zima.util.AspectRatioPreservationMode;

import java.util.List;
Expand All @@ -40,4 +41,5 @@ public class ZimaProfileSettings {
private Float accurateApproximate;

private AspectRatioPreservationMode aspectRatioPreservationMode;
private ImageConverterType imageConverterType;
}

0 comments on commit ea4266e

Please sign in to comment.