Skip to content

Commit

Permalink
Fixed a bug in loadPicture in the reading in of a brush action that c…
Browse files Browse the repository at this point in the history
…aused the picture load to fail.
  • Loading branch information
[email protected] committed Nov 18, 2011
1 parent 650b3cb commit e5269b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picedit/src/com/agifans/picedit/picture/Picture.java
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ public void loadPicture(File pictureFile) {
addPictureCode(PictureCodeType.DRAW_BRUSH_POINT);
while (true) {
if ((brushCode & 0x20) > 0) {
if ((pictureCode = pictureCodes.get(index++).getCode()) >= 0xF0) {
if ((pictureCode = rawPictureCodes[index++]) >= 0xF0) {
break;
}
addPictureCode(PictureCodeType.BRUSH_PATTERN_DATA, pictureCode);
Expand Down

0 comments on commit e5269b0

Please sign in to comment.