kicad/pcbnew/tools
Julius Schmidt 877a65dcc7 Fix ratsnest calculation for pads connected with zones (GAL)
This patch fixes a problem with GAL where zones are ignored in ratsnest
calculation.
The problem is that calling RN_DATA::Update on a zone with no polygons
(an unfilled zone) will remove the zone successfully, but then
RN_DATA::Add is a no-op.
From this point on, because ::Update refuses to work on items that have
not been ::Add'ed, the zone is removed entirely from ratsnest
calculation and will only be reconsidered once it is explicitly ::Add'ed
again.
The fix is to explicitly create an empty RN_ZONE_DATA object for every
zone that is ::Add'ed.

A second problem is that the point editor forgot to call
RN_DATA::Recalculate after calling Fill_Zone.

Fixes: lp:1537120
* https://bugs.launchpad.net/kicad/+bug/1537120
2017-02-14 00:39:41 +01:00
..
bright_box.cpp Code formatting 2016-12-12 16:45:52 +01:00
bright_box.h Code formatting 2016-12-12 16:45:52 +01:00
common_actions.cpp Enables selection of components and tracks on same sheet. 2017-02-11 07:33:49 -05:00
common_actions.h Enables selection of components and tracks on same sheet. 2017-02-11 07:33:49 -05:00
conditional_menu.cpp Store menu titles in CONTEXT_MENU 2017-01-23 14:52:11 +01:00
conditional_menu.h Store menu titles in CONTEXT_MENU 2017-01-23 14:52:11 +01:00
drawing_tool.cpp Code formatting 2017-02-10 23:23:56 +01:00
drawing_tool.h Code formatting 2017-02-10 23:23:56 +01:00
edit_constraints.cpp replace round() with KiROUND(), our function that is used almost everywhere for rounding, and detects int overflows in debug mode. 2015-07-17 10:26:48 +02:00
edit_constraints.h Explicitly mark overriding functions. 2016-09-24 14:53:15 -04:00
edit_points.cpp Fixed bounding box computation for EDIT_POINTS class 2017-02-09 12:03:28 +01:00
edit_points.h Fixed bounding box computation for EDIT_POINTS class 2017-02-09 12:03:28 +01:00
edit_tool.cpp Allow delete whole track in GAL 2017-02-10 22:42:55 +01:00
edit_tool.h Factor an EDIT_TOOL selection routine 2017-02-01 09:57:58 +01:00
grid_helper.cpp Code formatting 2016-12-12 16:45:52 +01:00
grid_helper.h Pcbnew: fix push and shove router segfault bug. 2015-11-03 11:19:42 -05:00
grid_menu.cpp Store menu titles in CONTEXT_MENU 2017-01-23 14:52:11 +01:00
grid_menu.h Fixed the issue of creating and event handling in context menus (GAL). 2017-01-23 11:40:59 +01:00
module_editor_tools.cpp Add CCW rotation to GAL canvas 2017-02-09 12:50:47 +01:00
module_editor_tools.h Renamed MODULE_TOOLS to MODULE_EDITOR_TOOLS 2017-01-27 15:39:41 +01:00
pad_tool.cpp Pad export/import settings functions: remove duplicate code. 2017-02-10 20:44:35 +01:00
pad_tool.h Rename pad copy actions in the pad tool 2017-02-07 23:08:09 +01:00
pcb_editor_control.cpp Code formatting 2017-02-10 23:23:56 +01:00
pcb_editor_control.h Add zone duplicate onto layer to GAL 2017-02-09 12:50:48 +01:00
pcb_tool.h Multiple simplifications to GAL tools in PCBNew: 2016-12-12 16:45:52 +01:00
pcbnew_control.cpp Fixed panning & cursor control with arrow keys in flipped view 2016-12-12 16:45:52 +01:00
pcbnew_control.h Explicitly mark overriding functions. 2016-09-24 14:53:15 -04:00
picker_tool.cpp Highlight net tool is not deactivated after a single use. 2016-01-29 10:56:29 +01:00
picker_tool.h Add more "override" markers. 2016-09-25 13:59:41 -04:00
placement_tool.cpp Store menu titles in CONTEXT_MENU 2017-01-23 14:52:11 +01:00
placement_tool.h Explicitly mark overriding functions. 2016-09-24 14:53:15 -04:00
point_editor.cpp Fix ratsnest calculation for pads connected with zones (GAL) 2017-02-14 00:39:41 +01:00
point_editor.h TOOL_ACTIONs are handled with transitions, no handlers needed in the event loops 2017-01-18 14:20:39 +01:00
selection_area.cpp Refactoring of VIEW/VIEW_ITEM classes: 2016-12-12 16:45:52 +01:00
selection_area.h Refactoring of VIEW/VIEW_ITEM classes: 2016-12-12 16:45:52 +01:00
selection_conditions.cpp Code formatting 2016-12-12 16:45:52 +01:00
selection_conditions.h Replace boost::function and boost::bind with their std:: counterparts 2016-06-29 12:23:11 +02:00
selection_tool.cpp Enables selection of components and tracks on same sheet. 2017-02-11 07:33:49 -05:00
selection_tool.h Enables selection of components and tracks on same sheet. 2017-02-11 07:33:49 -05:00
size_menu.cpp Fixed the issue of creating and event handling in context menus (GAL). 2017-01-23 11:40:59 +01:00
size_menu.h Fixed the issue of creating and event handling in context menus (GAL). 2017-01-23 11:40:59 +01:00
tool_event_utils.cpp Make a debug message not translatable. 2017-02-10 20:44:35 +01:00
tool_event_utils.h Add CCW rotation to GAL canvas 2017-02-09 12:50:47 +01:00
tool_menu.cpp Store menu titles in CONTEXT_MENU 2017-01-23 14:52:11 +01:00
tool_menu.h Break out tools' common menu functions and ownership 2017-01-12 14:33:57 +01:00
tools_common.cpp Allow registering TOOLs in any order. 2017-01-30 13:21:43 +01:00
zoom_menu.cpp Store menu titles in CONTEXT_MENU 2017-01-23 14:52:11 +01:00
zoom_menu.h Fixed the issue of creating and event handling in context menus (GAL). 2017-01-23 11:40:59 +01:00
zoom_tool.cpp Refactoring of VIEW/VIEW_ITEM classes: 2016-12-12 16:45:52 +01:00
zoom_tool.h Explicitly mark overriding functions. 2016-09-24 14:53:15 -04:00