Skip to content

Commit

Permalink
Styling Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqing-nic committed Oct 28, 2018
1 parent 2284bf7 commit 670cbca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/seedu/address/model/person/Photo.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ private void makePhoto(String filePath, String newPhoto) {

logger.info("makephoto");
logger.info(filePath);
if (filePath == "delete") {
if (filePath == "delete") {
filePath = "images/default_person.png";
} else {
//get image from source
String immm = System.getProperty("user.home") + "/Documents/cs2103/debt-tracker/docs/images/weiqing-nic.png";
//String immm = System.getProperty("user.home") +
// "/Documents/cs2103/debt-tracker/docs/images/weiqing-nic.png";
//System.out.println(immm);
filePath = "/" + filePath;
}
Expand Down Expand Up @@ -98,7 +99,7 @@ private void makePhoto(String filePath, String newPhoto) {
}

try {
if (filePath == "delete"){
if (filePath == "delete") {
this.photoPath = "images/default_person.png";
} else {
Files.copy(getImage.toPath(), pictureFinal.toPath(), REPLACE_EXISTING);
Expand Down

0 comments on commit 670cbca

Please sign in to comment.