Browse Source
Eeschema/pcbnew: fix pasted image saving
Eeschema/pcbnew: fix pasted image saving
The m_imageData buffer in the BITMAP_BASE is an internal implementation - the public API to persist the data to a stream appears to be SaveImageData - so use that, which hides the implementation (and generates the image data "live" when needed). Remove the public access to the m_imageData buffer as it isn't needed for public use, and also is misleading. Also break out the formatting of the data into KICAD_FORMAT, as it's currently replicated in eeschema/pcb/pagelayout formatting code. Fixes: https://gitlab.com/kicad/code/kicad/-/issues/19772pcb_db
13 changed files with 148 additions and 79 deletions
-
10common/bitmap_base.cpp
-
19common/drawing_sheet/ds_data_model_io.cpp
-
31common/io/kicad/kicad_io_utils.cpp
-
22eeschema/sch_io/kicad_sexpr/sch_io_kicad_sexpr.cpp
-
9eeschema/tools/sch_editor_control.cpp
-
9include/bitmap_base.h
-
13include/io/kicad/kicad_io_utils.h
-
22pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.cpp
-
1qa/qa_utils/include/qa_utils/wx_utils/unit_test_utils.h
-
7qa/qa_utils/wx_utils/unit_test_utils.cpp
-
33qa/tests/common/test_bitmap_base.cpp
-
44qa/tests/common/wximage_test_utils.cpp
-
7qa/tests/common/wximage_test_utils.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue