diff --git a/src/Gui/BitmapFactory.cpp b/src/Gui/BitmapFactory.cpp index da7a9a9f4..9dac5cd12 100644 --- a/src/Gui/BitmapFactory.cpp +++ b/src/Gui/BitmapFactory.cpp @@ -589,7 +589,7 @@ void BitmapFactoryInst::convert(const QImage& p, SoSFImage& img) const size[0] = p.width(); size[1] = p.height(); - int buffersize = p.numBytes(); + int buffersize = p.byteCount(); int numcomponents = 0; QVector table = p.colorTable(); if (!table.isEmpty()) {