Skip to content

Commit

Permalink
Merge pull request nus-cs2103-AY1819S1#77 from weiqing-nic/new
Browse files Browse the repository at this point in the history
Styling Fix
  • Loading branch information
weiqing-nic authored Oct 28, 2018
2 parents 45ea157 + 670cbca commit fdd1262
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 fdd1262

Please sign in to comment.