Schema editor exports black images when sheet size is small
Description
Export Drawing to Clipboard in schematic editor exports a solid black rectangle on schematic sheets below about 4.5"x9" (HxW) in size.
When the custom drawing sheet size is a bit above these values, e.g. 5"x10", export works correctly. Below the threshold, say 4"x6", exported bitmap is a solid black filled rectangle.
Steps to reproduce
-
Open any schematic - can be empty
-
Set custom sheet size to 5x10 in (HxW)
-
File->Export->Drawing to Clipboard
-
Paste into Paint, Gimp, etc.
-
The image pasted is OK.
-
Change custom sheet size to 4x6 in (HxW)
-
File->Export->Drawing to Clipboard
-
Paste into Paint, Gimp, etc.
-
The image pasted is solid black.
KiCad Version
Application: KiCad Schematic Editor x64 on x64
Version: 7.0.2, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
libcurl/7.88.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Apr 15 2023 19:18:27
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON
This bug also exists in 6.0.11.