Permalink
Browse files

Merge pull request #495 from mgmax/fix-example-settings-thickness

Bugfix: Missing thickness in fallback example settings
  • Loading branch information...
t-oster committed Dec 28, 2018
2 parents 97adccd + 2f7a260 commit 9abb7eaf7316a418bf9231f6fc0b072caefacab1
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/com/t_oster/visicut/managers/PreferencesManager.java
@@ -36,7 +36,9 @@
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -117,12 +119,14 @@ private void generateDefault() throws FileNotFoundException, IOException
mp.setColor(Color.WHITE);
mp.setCutColor(Color.RED);
mp.setEngraveColor(Color.DARK_GRAY);
mp.setMaterialThicknesses(new LinkedList<Float>(Arrays.asList(new Float(1.0))));
MaterialManager.getInstance().add(mp);
mp = new MaterialProfile();
mp.setName("Acrylic");
mp.setColor(Color.BLUE);
mp.setCutColor(Color.RED);
mp.setEngraveColor(Color.WHITE);
mp.setMaterialThicknesses(new LinkedList<Float>(Arrays.asList(new Float(1.0))));
MaterialManager.getInstance().add(mp);
preferences.setLastMaterial(mp.getName());
}

0 comments on commit 9abb7ea

Please sign in to comment.