Skip to content

Commit

Permalink
Merge pull request rictic#11 from holzman/bug9
Browse files Browse the repository at this point in the history
Solves Issues rictic#9 and rictic#4
  • Loading branch information
rictic committed Jun 11, 2013
2 parents 99e7c61 + 386f106 commit 8223d16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/code_swarm
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ def main():

def root_path():
"Returns the path of the code_swarm source directory"
real_path = os.path.join(os.path.dirname(__file__), os.readlink(__file__))
real_file = __file__
if os.path.islink():
real_file = os.readlink(__file__)

real_path = os.path.join(os.path.dirname(real_file))
return os.path.dirname(real_path)


Expand Down
1 change: 1 addition & 0 deletions src/code_swarm.java
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,7 @@ class PersonNode extends Node {
String iconFile = avatarFetcher.fetchUserImage(name);
if (iconFile != null) {
icon = loadImage(iconFile, "unknown");
icon.resize(cfg.getPositiveIntProperty("AvatarSize"), cfg.getPositiveIntProperty("AvatarSize"));
if (circularAvatars)
icon.mask(avatarMask);
}
Expand Down

0 comments on commit 8223d16

Please sign in to comment.