From 670cbca22c1b49f9fb8dc94f6a2cf893dda463f4 Mon Sep 17 00:00:00 2001 From: weiqing-nic Date: Mon, 29 Oct 2018 02:07:48 +0800 Subject: [PATCH] Styling Fix --- src/main/java/seedu/address/model/person/Photo.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/seedu/address/model/person/Photo.java b/src/main/java/seedu/address/model/person/Photo.java index 75406c4f3493..f1daacb22d6c 100644 --- a/src/main/java/seedu/address/model/person/Photo.java +++ b/src/main/java/seedu/address/model/person/Photo.java @@ -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; } @@ -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);