kicad/eeschema
Seth Hillbrand 95fcf53353 Handle basic rounding error in schematic import
The fractional part of Altium schematic units is an integer number of
1/10000 mil segments, which is 2.54 nm.  The internal unit of eeschema
is 10 nm, so each fractional unit in Altium is 0.254 base eeschema
units.  To be consistent with
cf33cfcad1
we round to the nearest 10nm for each element

Fixes https://gitlab.com/kicad/code/kicad/issues/11742

(cherry picked from commit 6fef054c51)
2022-07-07 11:14:25 -07:00
..
dialogs PANEL_SYM_LIB_TABLE: fix a bug in filenames from wxFileDialog dialog. 2022-06-16 13:06:19 +02:00
netlist_exporters Fix botched commit 2022-05-02 16:28:39 -07:00
plugins Install kicad_utils.py BOM plugin helper 2021-12-13 22:52:31 +00:00
sch_plugins Handle basic rounding error in schematic import 2022-07-07 11:14:25 -07:00
sim Fix broken wide string for Mac 2022-02-10 09:48:27 -08:00
symbol_editor Refresh draw objects when common settings change 2022-06-28 16:45:55 -07:00
tools Update message panel from PCB point editor and SCH drawing tools. 2022-07-06 19:48:09 -07:00
widgets If present, tune Spice_Model instead of Value 2021-12-14 14:02:25 +01:00
CMakeLists.txt Infobar warning if symbol loading was cancelled. 2022-02-27 18:20:25 +00:00
annotate.cpp Be more consistent about annotation warngings. 2021-11-29 14:24:45 +00:00
autoplace_fields.cpp Be more careful about non-visible elements in fields autoplacer. 2022-03-02 12:07:43 +00:00
bom_plugins.cpp Quote BOM executable for spaces 2022-02-09 10:53:09 -08:00
bom_plugins.h Unwrap some std::library typedefs. 2021-07-28 22:16:38 +01:00
bus-wire-junction.cpp Ensure merged line gets selected if either parent is 2022-01-01 16:53:31 -08:00
bus_alias.cpp Proper numeric sorting for intersheet refs. 2021-10-01 18:29:21 +01:00
bus_alias.h More NULL expunging. 2021-07-16 16:13:41 -04:00
cmp_library.keywords
cmp_library_lexer.cpp Expunge the use of the word component from Eeschema code. 2021-06-14 14:00:21 -04:00
component_references_lister.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
connection_graph.cpp Fix ERC error missing on stacked pins 2022-06-28 15:03:52 -07:00
connection_graph.h Break up buildConnectionGraph for debugging 2022-03-11 16:18:56 -08:00
cross-probing.cpp Allow sheet recursion, fix sheet paths in "Highlight on PCB". 2022-05-25 23:38:52 +00:00
default_values.h Fix some issues with incorrectly scaled defaults given in mils. 2021-08-25 20:04:06 +01:00
ee_collectors.cpp Pull bug fixes back from master. 2022-03-02 12:07:43 +00:00
ee_collectors.h More NULL expunging. 2021-07-16 16:13:41 -04:00
eeschema.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
eeschema.icns Add drop shadows to MacOS icons 2021-07-30 20:55:34 -07:00
eeschema_config.cpp Eeschema: ensure ERC exclusions list is up to date before saving it in *.kicad_pro 2022-02-25 18:26:48 +01:00
eeschema_doc.icns Add drop shadows to MacOS icons 2021-07-30 20:55:34 -07:00
eeschema_id.h Allow more (lots more) unfold from bus menu entries. 2022-02-03 15:00:39 +00:00
eeschema_settings.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
eeschema_settings.h PCM: make DIALOG_MANAGE_REPOSITORIES_BASE resizable. 2021-09-06 08:36:06 +02:00
erc.cpp Don't flag pin missing driver when there is an NC 2022-04-07 09:29:02 -07:00
erc.h Naming conventions. 2021-05-05 22:58:40 +01:00
erc_item.cpp Fixes for Eagle importer. 2021-06-16 21:44:18 +01:00
erc_item.h Fixes for Eagle importer. 2021-06-16 21:44:18 +01:00
erc_settings.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
erc_settings.h Fixes for Eagle importer. 2021-06-16 21:44:18 +01:00
fields_grid_table.cpp Typo. 2022-06-12 10:39:31 +01:00
fields_grid_table.h Add hot-updating of units in common wxGrids. 2021-12-23 17:01:34 +00:00
files-io.cpp Don't leave dangling pointers to old document when importing. 2022-04-03 09:49:37 +01:00
general.h Rename layer ids file. 2021-07-29 16:03:25 +01:00
generate_alias_info.cpp Fix kicad_string.h / string.cpp mismatch. 2021-07-29 16:03:25 +01:00
generate_alias_info.h Substitute all wxHtmlWindow with HTML_WINDOW 2021-10-12 07:07:15 +00:00
hierarch.cpp Hierarchy: update just selection on sheet change 2022-05-09 17:31:29 +00:00
hierarch.h Hierarchy: update just selection on sheet change 2022-05-09 17:31:29 +00:00
invoke_sch_dialog.h Expunge the use of the word part from Eeschema code. 2021-06-15 08:32:11 -04:00
lib_arc.cpp Replace individual LIB_* shapes with LIB_SHAPE (based on EDA_SHAPE). 2021-10-15 12:45:43 +01:00
lib_field.cpp Make LIB_ITEM::COMPARE_FLAGS really a flags field, and add ERC. 2022-03-03 23:29:22 +00:00
lib_field.h Make LIB_ITEM::COMPARE_FLAGS really a flags field, and add ERC. 2022-03-03 23:29:22 +00:00
lib_item.cpp Make LIB_ITEM::COMPARE_FLAGS really a flags field, and add ERC. 2022-03-03 23:29:22 +00:00
lib_item.h Make LIB_ITEM::COMPARE_FLAGS really a flags field, and add ERC. 2022-03-03 23:29:22 +00:00
lib_pin.cpp Make LIB_ITEM::COMPARE_FLAGS really a flags field, and add ERC. 2022-03-03 23:29:22 +00:00
lib_pin.h Make LIB_ITEM::COMPARE_FLAGS really a flags field, and add ERC. 2022-03-03 23:29:22 +00:00
lib_shape.cpp Fix cherry-pick error 2022-03-07 19:53:01 -08:00
lib_shape.h Make LIB_ITEM::COMPARE_FLAGS really a flags field, and add ERC. 2022-03-03 23:29:22 +00:00
lib_symbol.cpp Adjust LIB_SYMBOL compare for use with ERC. 2022-04-12 13:24:14 +01:00
lib_symbol.h Make LIB_ITEM::COMPARE_FLAGS really a flags field, and add ERC. 2022-03-03 23:29:22 +00:00
lib_text.cpp Symbol editor crash: Fix use of a null pointer. 2022-05-06 12:54:32 +02:00
lib_text.h Make LIB_ITEM::COMPARE_FLAGS really a flags field, and add ERC. 2022-03-03 23:29:22 +00:00
libarch.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
menubar.cpp Ensure "Open Recent" and "Clear files" menu titles are updated after language change. 2022-04-14 15:06:17 +02:00
picksymbol.cpp Infobar warning if symbol loading was cancelled. 2022-02-27 18:20:25 +00:00
pin_numbers.cpp Fix broken comparison in pin_numbers 2022-04-19 14:49:52 -07:00
pin_numbers.h Fix broken comparison in pin_numbers 2022-04-19 14:49:52 -07:00
pin_type.cpp Better error reporting for DP uncoupled length. 2022-04-09 23:09:10 +01:00
pin_type.h Expunge the use of the word component from Eeschema code. 2021-06-14 14:00:21 -04:00
project_rescue.cpp Eeschema: fix project rescue bug. 2022-06-28 16:14:47 -04:00
project_rescue.h More NULL expunging. 2021-07-16 16:13:41 -04:00
sch_base_frame.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
sch_base_frame.h Prevent automatic RTree recaching 2021-10-05 20:13:15 -07:00
sch_bitmap.cpp Some minor performance enhancements. 2021-09-28 14:28:35 +01:00
sch_bitmap.h Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
sch_bus_entry.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
sch_bus_entry.h Copy lastResolved stuff when pasting. 2021-11-28 17:09:24 +00:00
sch_connection.cpp Fix wxT overzealous replacements 2022-02-16 17:21:49 -08:00
sch_connection.h Fix highlighting complex connections from subsheets 2021-10-25 22:14:48 -04:00
sch_draw_panel.cpp Rename layer ids file. 2021-07-29 16:03:25 +01:00
sch_draw_panel.h Expunge the use of the word component from Eeschema code. 2021-06-14 14:00:21 -04:00
sch_edit_frame.cpp On-the-fly translations for pin electrical types. 2022-04-09 21:22:50 +01:00
sch_edit_frame.h Be more consistent about annotation warngings. 2021-11-29 14:24:45 +00:00
sch_field.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
sch_field.h Repair field properties dialog for rotation and mirroring. 2021-11-03 18:11:59 +00:00
sch_file_versions.h R/W uuids for junctions. 2021-11-24 13:20:44 +00:00
sch_io_mgr.cpp More NULL expunging. 2021-07-16 16:13:41 -04:00
sch_io_mgr.h File open/import progress dialogs. 2021-06-23 23:55:54 +01:00
sch_item.cpp Break up buildConnectionGraph for debugging 2022-03-11 16:18:56 -08:00
sch_item.h Revert "Move connected_items from hash table to tree" 2022-03-14 17:22:44 -07:00
sch_junction.cpp Copy lastResolved stuff when pasting. 2021-11-28 17:09:24 +00:00
sch_junction.h Copy lastResolved stuff when pasting. 2021-11-28 17:09:24 +00:00
sch_line.cpp Schematic: disallow center rotation, allow both endpoint rotations 2022-02-25 16:27:55 +00:00
sch_line.h Copy lastResolved stuff when pasting. 2021-11-28 17:09:24 +00:00
sch_marker.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
sch_marker.h Pass objects by reference instead of on the stack. 2021-06-08 10:09:38 -04:00
sch_no_connect.cpp Move plotter headers into include folder. 2021-08-18 16:38:31 -04:00
sch_no_connect.h Rename SCH_COMPONENT to SCH_SYMBOL. 2021-06-10 10:34:49 -04:00
sch_painter.cpp On-the-fly translations for pin electrical types. 2022-04-09 21:22:50 +01:00
sch_painter.h Draw dangling symbols on a separate layer. 2021-12-06 18:50:50 +00:00
sch_pin.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
sch_pin.h Move NC pin logic so we set it before we need it. 2021-12-12 22:25:36 +00:00
sch_plugin.cpp More NULL expunging. 2021-07-16 16:13:41 -04:00
sch_preview_panel.cpp Tidy up the SCH_PREVIEW_PANEL visibility flags. 2021-11-20 15:28:17 +00:00
sch_preview_panel.h Reduce some eda_item.h usage in headers 2021-06-06 11:09:06 -04:00
sch_reference_list.h Remove broken RefDesStringCompare 2021-09-01 11:48:01 -07:00
sch_rtree.h Overplot schematic symbol fields and pins 2022-07-05 16:47:07 -07:00
sch_screen.cpp Overplot schematic symbol fields and pins 2022-07-05 16:47:07 -07:00
sch_screen.h Fixes for realtime connectivity being off. 2021-11-24 13:20:44 +00:00
sch_sheet.cpp Handle locally-coded file names for sheets 2022-03-01 17:21:16 -08:00
sch_sheet.h Handle locally-coded file names for sheets 2022-03-01 17:21:16 -08:00
sch_sheet_path.cpp Initialize virtual page no. to something more reasonable. 2022-05-09 00:36:27 +01:00
sch_sheet_path.h Revert "Move connected_items from hash table to tree" 2022-03-14 17:22:44 -07:00
sch_sheet_pin.cpp SCH_SHEET_PIN: Rename GetEdge, SetEdge to GetSide, SetSide 2021-11-28 20:07:06 +01:00
sch_sheet_pin.h SCH_SHEET_PIN: Rename GetEdge, SetEdge to GetSide, SetSide 2021-11-28 20:07:06 +01:00
sch_symbol.cpp Overplot schematic symbol fields and pins 2022-07-05 16:47:07 -07:00
sch_symbol.h Overplot schematic symbol fields and pins 2022-07-05 16:47:07 -07:00
sch_text.cpp Implement cross-references for labels. 2022-05-09 12:22:49 +01:00
sch_text.h Bug fixes in new dangling symbol drawing code. 2021-12-07 21:31:42 +00:00
sch_text_help.md Fix outdated syntax in help text 2021-11-25 12:53:29 +00:00
sch_validators.cpp Fix bus validation. 2021-09-17 22:01:17 +01:00
sch_validators.h Pass wxString objects by reference instead of on the stack. 2021-07-27 08:41:27 -04:00
sch_view.cpp PLOTTER: do not clamp coordinates to an arbitrary value. 2022-04-04 13:52:21 -07:00
sch_view.h Get all eeschema layers properly ordered 2022-01-23 10:03:03 -08:00
schematic.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
schematic.h Allow titleblock vars to be resolved outside the titleblock. 2021-07-06 13:30:17 +01:00
schematic.keywords Persist fields_autoplaced information. 2021-04-02 17:08:58 +01:00
schematic_settings.cpp Allow a 0 pin-symbol-size. 2021-12-23 17:01:48 +00:00
schematic_settings.h Remove atrophied schematic default wire and bus widths. 2021-11-13 22:56:50 +00:00
schematic_undo_redo.cpp Don't kill entire OpenGL cache on undo. 2022-03-09 15:06:40 +00:00
sheet.cpp Improve sheet schematic import messages and simplify code. 2022-04-04 17:19:40 -04:00
symbol_async_loader.cpp Infobar warning if symbol loading was cancelled. 2022-02-27 18:20:25 +00:00
symbol_async_loader.h Infobar warning if symbol loading was cancelled. 2022-02-27 18:20:25 +00:00
symbol_lib_table.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
symbol_lib_table.h More NULL expunging. 2021-07-16 16:13:41 -04:00
symbol_library.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
symbol_library.h Unwrap some std::library typedefs. 2021-07-28 22:16:38 +01:00
symbol_tree_model_adapter.cpp Infobar warning if symbol loading was cancelled. 2022-02-27 18:20:25 +00:00
symbol_tree_model_adapter.h Infobar warning if symbol loading was cancelled. 2022-02-27 18:20:25 +00:00
symbol_tree_synchronizing_adapter.cpp Default eeschema strings to wide 2022-02-08 15:14:54 -08:00
symbol_tree_synchronizing_adapter.h Remove and re-add saved-as libraries when Syncing tree. 2021-01-31 23:00:17 +00:00
symbol_viewer_frame.cpp Unify symbol browser/editor unit display 2022-06-21 16:23:27 -07:00
symbol_viewer_frame.h Expunge the use of the word component from Eeschema code. 2021-06-14 14:00:21 -04:00
toolbars_sch_editor.cpp KIFACE_I -> KIFACE_BASE. 2021-09-14 23:45:14 +01:00
toolbars_symbol_viewer.cpp Rename class_library.[h|cpp] to symbol_library.[h|cpp]. 2021-06-15 09:24:55 -04:00
transform.cpp More NULL expunging. 2021-07-16 16:13:41 -04:00
transform.h Expunge the use of the word component from Eeschema code. 2021-06-14 14:00:21 -04:00