Warp cursor settings ignored until restart
Bug #1468388 reported by
Sean Greenslade
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Low
|
Jon Neal |
Bug Description
Running the latest BZR (5813) on Windows. The default setting for eeschema is to warp cursor to center on zoom. I disabled this option, which worked fine. However when I entered the library editor, the warping behavior remained. After fully exiting and re-opening eeschema, the library editor then obeyed the setting. Going the other way shows the same behavior; library editor seems to lock to the settings observed on first program load.
Related branches
Changed in kicad: | |
importance: | Undecided → Low |
Changed in kicad: | |
status: | New → Confirmed |
Changed in kicad: | |
status: | Confirmed → Fix Committed |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This behavior is because draw_panel.cpp reads that particular option when it is created and writes that option when it is destoryed.
1. So Eeschema is started and reads the option.
2. The option is changed (hasn't been saved to the main config because Eeschema's draw_panel.cpp hasn't been closed)
3. Library editor is opened and a new draw_panel is instanciated (reads the old config) and acts like the option is never changed.
4. Eeschema is closed (writes out the config when the draw_panel object is destoryed)
5. Eeschema is loaded and library editor is opened. The configuration change is observed in both.
I'm new to the code but will hopefully find a solution for this.