Browse Source

Don't write unused part of the buffer into image data.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20698
9.0
Alex Shvartzkop 6 months ago
parent
commit
3aded5da4b
  1. 2
      common/bitmap_base.cpp

2
common/bitmap_base.cpp

@ -208,7 +208,7 @@ bool BITMAP_BASE::SaveImageData( wxOutputStream& aOutStream ) const
else
{
// Write the contents of m_imageData to the stream.
aOutStream.Write( m_imageData.GetData(), m_imageData.GetBufSize() );
aOutStream.Write( m_imageData.GetData(), m_imageData.GetDataLen() );
}
return true;

Loading…
Cancel
Save