Symbol Library Editor: Library tree scrollbar position is reset after editing field properties
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Medium
|
Jeff Young |
Bug Description
Open a symbol in the library editor, one that's in the middle the list so that the scrollbar is not at the top, open the field properties dialog and click ok.
The scrollbar should stay at the current position but after clicking ok in the field properties dialog the position is reset.
Edit: The position is also reset when you place a line, circle, text or a pin
Application: kicad
Version: (5.0.0-
Libraries:
wxWidgets 3.0.4
libcurl/7.60.0 GnuTLS/3.5.18 zlib/1.2.11 libidn2/2.0.4 libpsl/0.20.2 (+libidn2/2.0.4) libssh2/1.8.0 nghttp2/1.32.0 librtmp/2.3
Platform: Linux 4.16.0-2-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.62.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.60.0
Compiler: GCC 7.3.0 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=OFF
description: | updated |
Changed in kicad: | |
milestone: | none → 5.0.1 |
Changed in kicad: | |
status: | Confirmed → In Progress |
importance: | Undecided → Medium |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Every time a component is double clicked in the tree it is unselected by code in CMP_TREE_ PANE::onCompone ntSelected,
also, when the tree widget loses focus the component is unselected by code in LIB_EDIT_ FRAME:: GeneralControl (a call to ClearSearchTree Selection)
In the end, the current item is unselected with a call to wxDataViewCtrl: :Unselect with the following comment: "// Make sure current-part highlighting doesn't get lost in seleciton highlighting".
This unselection of the current item makes the call to wxDataViewCtrl: :GetSelection in COMPONENT_ TREE::GetSelect edLibId always return an invalid item