Skip to content
Snippets Groups Projects
Commit 0bcb3c98 authored by Matej Kovár's avatar Matej Kovár
Browse files

removed bug when getting name of file throws exception

parent 8179a447
No related branches found
No related tags found
No related merge requests found
...@@ -231,9 +231,7 @@ public class HumanFace implements MeshListener, Serializable { ...@@ -231,9 +231,7 @@ public class HumanFace implements MeshListener, Serializable {
*/ */
public String getShortName() { public String getShortName() {
String name = this.getName(); String name = this.getName();
int from = name.length() - 1; name = name.substring(name.lastIndexOf(File.separatorChar) + 1, name.length());
while (Character.valueOf('\\').compareTo(name.charAt(from)) != 0) {from--;}
name = name.substring(from + 1);
return name; return name;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment