Symbol Editor - Cut command without paste lost cut symbol

Bug #1821547 reported by Silviu Laurentiu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
High
Jeff Young

Bug Description

 _ Go to Symbol Editor
 _ Select a component, press mouse right click on it and select Cut command
 _ The components will be deleted from library, even if it is not pasted yet
 _ Save the library from where cut the symbol.
 _ If the Symbol Editor will be closed and then opened again, the symbol cut before will not be available even if a paste command will be tried.
 From my opinion this is not a safety behavior because the symbol will be lost if it will not be pasted.

________________________________________________________________
Application: kicad
Version: (5.1.0)-1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Silviu Laurentiu (silviulaurentiu) wrote :
Revision history for this message
Jon Evans (craftyjon) wrote :

Confirmed. Also in my opinion, wherever things are "cut", they should remain visible until they are pasted, but in some way highlighted (various other programs use italics / lighter color / dotted borders / etc). That way, you can visually keep track of what you just cut and are preparing to paste.

Changed in kicad:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Jeff Young (jeyjey) wrote :

I think Jon's suggestion while handy, would be too non-standard.

However, Cut/Copy/Paste of symbols should be using the system clipboard, which wouldn't have this issue. The current implementation uses a simple global variable.

Changed in kicad:
assignee: nobody → Jeff Young (jeyjey)
milestone: none → 6.0.0-rc1
importance: Medium → High
Revision history for this message
Jeff Young (jeyjey) wrote :

Changing importance to "high" as this can be a data loss issue.

Jeff Young (jeyjey)
Changed in kicad:
status: Confirmed → In Progress
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision b6c0aeb608e352efc808268471246ee7b73e80ff
https://git.launchpad.net/kicad/patch/?id=b6c0aeb608e352efc808268471246ee7b73e80ff

Changed in kicad:
status: In Progress → Fix Committed
Jeff Young (jeyjey)
Changed in kicad:
milestone: 6.0.0-rc1 → 5.1.1
Revision history for this message
Jeff Young (jeyjey) wrote :

The fix for this turned out to be based on some of Jon's net/bus changes, so it can't go to 5.1.1 after all.

Changed in kicad:
milestone: 5.1.1 → 6.0.0-rc1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.