Skip to content

Commit

Permalink
Fixed file size display when loading a freeze-dried album.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Luc Paour committed Jun 4, 2003
1 parent a1c3371 commit 9711361
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions com/gallery/GalleryRemote/model/Picture.java
Expand Up @@ -43,7 +43,7 @@ public class Picture implements Serializable {
Album album = null;
private int listIndex;

transient double fileSize = -1;
transient double fileSize = 0;
transient String escapedCaption = null;

/**
Expand Down Expand Up @@ -74,7 +74,7 @@ public void setSource( File source ) {
setCaption(source.getName());
}

fileSize = -1;
fileSize = 0;
}


Expand Down Expand Up @@ -184,7 +184,7 @@ public String getEscapedCaption() {
*@return The size value
*/
public double getFileSize() {
if ( fileSize == -1 && source != null && source.exists() ) {
if ( fileSize == 0 && source != null && source.exists() ) {
fileSize = source.length();
}

Expand Down

0 comments on commit 9711361

Please sign in to comment.