Skip to content

Commit

Permalink
Another fix for Qt <5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
klayoutmatthias committed May 24, 2022
1 parent d6f320b commit 348faa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/laybasic/laybasic/layPixelBuffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ QImage
BitmapBuffer::to_image_copy () const
{
QImage img (m_width, m_height, QImage::Format_MonoLSB);
#if QT_VERSION < 0x050000
#if QT_VERSION < 0x051000
memcpy (img.bits (), data (), img.byteCount ());
#else
memcpy (img.bits (), data (), img.sizeInBytes ());
Expand Down

0 comments on commit 348faa6

Please sign in to comment.