Skip to content

copy textbox-item from board to footprint-editor doesn't works correctly

Description

It's possible to select graphical shapes (rectangle/lines, text-item) in the board-editor and copy/paste these elements into an open footprint-editor. This doesn't works correctly for textboxes. The following parameters are not copy/pasted into the footprint-editor:

  • textbox size (width+height). both are set to 0
  • textbox position
  • textbox border line width (always set to 0.1mm at pasting a textbox)
  • textbox border linestyle (always set to solid at pasting a textbox)

Copying / pasting a textbox inside the footprint-editor works correctly.

Steps to reproduce

  1. open attached project, open board
  2. select all 6 graphic elements (2x rectangle, 2x simple text, 2xtextbox) on silkscreen layer
  3. CTRL-C to copy this selection
  4. doubleclick J101 to get properties-dialog --> Edit footprint
  5. footprint editor opens with J101 ready to modify
  6. click onto canvas (in FP-editor), CTRL-V to paste the selection from step1
  7. observe result:
    • pasting rectangles: ok
    • pasting simple text: ok
    • pasting textbox:
      • position not retained (both textboxes are pasted above another)
      • textbox-size not retained - set to width=0 / height=0
      • border-width not retained
      • border linestyle not retained
  8. J102 shows the result of the steps 1...6 as already prepared/modified footprint

copy_textbox_board_footprint.zip

copy_textbox_02

KiCad Version

Application: KiCad PCB Editor (64-bit)

Version: (6.99.0-3095-g0474ae86ea), release build

Libraries:
	wxWidgets 3.1.7
	FreeType 2.11.1
	HarfBuzz 4.2.0
	FontConfig 2.14.0

Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW

	wxWidgets: 3.1.7 (wchar_t,wx containers)
	Boost: 1.79.0
	OCC: 7.6.0
	Curl: 7.83.1-DEV
	ngspice: 37
	Compiler: Visual C++ 1929 without C++ ABI

Build settings:
	KICAD_SPICE=ON