summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_BMP_Image.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_BMP_Image.cxx b/src/Fl_BMP_Image.cxx
index 7610652cb..95a467a3a 100644
--- a/src/Fl_BMP_Image.cxx
+++ b/src/Fl_BMP_Image.cxx
@@ -205,7 +205,8 @@ void Fl_BMP_Image::load_bmp_(Fl_Image_Reader &rdr, int ico_height, int ico_width
height = ico_height;
} else {
// New BMP header...
- w(rdr.read_long());
+ width = rdr.read_long();
+ w(width);
// If the height is negative, the row order is flipped
temp = rdr.read_long();
if (temp < 0) row_order = 1;