소스 검색

small fix

Teh-Hai Julian Zheng 8 년 전
부모
커밋
3e840b151f
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/ui/controller/SaveController.java

+ 3 - 3
src/ui/controller/SaveController.java

@@ -472,10 +472,10 @@ public class SaveController {
 		String ret = entryName;
 		String partition = null;
 
-		if(os.contains("windows")) {
-			partition = entryName.substring(0, entryName.indexOf(":")+1);
-			ret = entryName.replace(partition, "");
+		if(os.contains("windows")) { 
+			partition = ret.substring(0, ret.indexOf(":")+1);
 			ret = ret.replace(System.getProperty("user.home") + "\\HolonGUI\\", "");
+			ret = ret.replace(partition, "");
 		}
 		if(os.contains("mac")) {
 			ret = ret.replace(System.getProperty("user.home") + "/HolonGUI/", "");