mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Don't write unused part of the buffer into image data.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20698 (cherry picked from commit 3aded5da4bd5ddeec0622a40912e9a14ff786919) Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
This commit is contained in:
parent
34f2038a95
commit
ebcfcabde9
@ -208,7 +208,7 @@ bool BITMAP_BASE::SaveImageData( wxOutputStream& aOutStream ) const
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Write the contents of m_imageData to the stream.
|
// 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;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user