kicad/common
Seth Hillbrand a7ea868282 Avoid overflow in textbox
Count() returns unsigned values.  Since, we subtract 1 from this value,
if the count is 0, we will underflow the unsigned value, creating an
extremely large value that we multiply by the interline spacing.

(cherry picked from commit d29d981784)
2022-02-25 11:14:53 -08:00
..
dialog_about Implement use of the kicad nightly icon where needed 2022-01-23 09:21:07 -05:00
dialogs Hide icon option when platforms disable 2022-02-07 10:28:07 -08:00
drawing_sheet Bug fixes in arc & textbox printing. 2022-01-31 20:00:47 +00:00
font No need to partition font glyph triangulation. 2022-02-15 19:19:02 +00:00
gal Make sure bitmap fallback is only used for non-cached text. 2022-02-24 18:16:45 +00:00
kicad_curl Fix typo in comment 2022-01-22 00:07:07 -05:00
libeval Fix kicad_string.h / string.cpp mismatch. 2021-07-29 16:03:25 +01:00
libeval_compiler Add field access to custom DRC rules. 2021-12-24 18:13:00 +00:00
plotters Plotters: add plot Arcs using EDA_SHAPE or center, start point and end point. 2022-02-20 17:17:20 +01:00
plugins altium: Don't use string concatenation for paths pointing in the compound file 2022-02-19 16:46:20 +01:00
preview_items Fix some issues with ruler drawing. 2022-02-08 15:59:48 +00:00
project Be more explicit about string conversions. 2022-02-03 23:07:41 +00:00
settings Simplify KICAD6_TEMPLATE_DIR default 2022-02-21 12:22:23 -05:00
swig SWIG mappings for all shapes 2022-02-16 20:58:52 +00:00
tool On-the-fly translations for Grid and Zoom menus. 2022-02-25 17:36:35 +00:00
view Clamp cursor to limits of coordinates representation 2022-02-11 16:42:52 +00:00
widgets Debounce layer visibility buttons and fix issues with FP Editor. 2022-02-23 17:52:08 +00:00
CMakeLists.txt TextBoxes for PCBNew. 2022-01-31 20:00:47 +00:00
advanced_config.cpp There is one source of truth in AC 2022-01-28 13:33:28 -08:00
array_axis.cpp Pcbnew: add a step field to the array tool 2019-05-16 11:20:52 +01:00
array_options.cpp More EDA_ANGLE changes. 2022-01-14 16:08:19 +00:00
asset_archive.cpp Cleanup memory in the asset archive reader 2021-03-19 21:23:35 +00:00
base64.cpp Plot SVG embedded 2019-12-08 08:57:33 -08:00
base_screen.cpp Remove unused m_crossHairPosition 2021-06-15 21:25:27 -04:00
base_units.cpp Excise deci-degrees from UNIT_BINDER. 2022-01-19 00:10:32 +00:00
bin_mod.cpp Include optimization: move some things from common.h to point-of-use 2021-03-20 12:09:18 -04:00
bitmap.cpp Add a quantized scaling mode for bitmaps. 2021-09-11 23:40:31 +01:00
bitmap_base.cpp BITMAP_BASE::DrawBitmap(): fix position of the clipping area when using matrix transform. 2022-01-20 16:15:39 +01:00
bitmap_store.cpp Add support mode for dark mode to SCINTILLA_TRICKS. 2021-09-14 00:18:50 +01:00
board_printout.cpp Gerbview: fix a long standing issue: negative objects are now correctly printed. 2022-02-12 11:44:34 +01:00
build_version.cpp Add FreeType version to version info. 2022-01-21 13:21:21 +00:00
callback_gal.cpp Plot fonts in outline mode, not triangulated 2022-01-13 17:04:14 -08:00
commit.cpp Proper numeric sorting for intersheet refs. 2021-10-01 18:29:21 +01:00
common.cpp Remove tilde expansion 2021-09-27 16:10:36 +00:00
config_params.cpp Kick wx.h mostly out of common 2021-06-07 18:38:52 -04:00
confirm.cpp Lock the windows when we ask about unsaved changes 2021-09-29 23:01:06 -04:00
dialog_shim.cpp Be more explicit about string conversions. 2022-02-03 23:07:41 +00:00
draw_panel_gal.cpp Don't lock OpenGL context twice 2022-02-13 21:09:54 +00:00
drc_rules.keywords ADDED assertion constraints for user-defined DRC checks. 2021-12-24 16:13:18 +00:00
dsnlexer.cpp pcb parser: ensure the parser is reinitialized before parsing a new fp file 2021-08-26 19:38:20 +02:00
eda_base_frame.cpp Reduce duplication of settings. 2021-12-24 21:10:28 +00:00
eda_dde.cpp Start expunging NULL. 2021-07-15 15:44:45 -04:00
eda_doc.cpp Trim some (probably) excess includes. 2021-09-26 15:28:17 +01:00
eda_draw_frame.cpp Prevent UI updates from changing zoom selection 2022-01-20 10:10:06 -08:00
eda_item.cpp TextBoxes for PCBNew. 2022-01-31 20:00:47 +00:00
eda_pattern_match.cpp Flatten out some more preferences. 2021-12-24 15:43:20 +00:00
eda_rect.cpp Prefer EDA_ANGLE to naked degrees. 2022-01-20 21:10:04 +00:00
eda_shape.cpp EDA_SHAPE::MakeEffectiveShapes(): protect against empty polygons. 2022-02-02 20:40:54 +01:00
eda_text.cpp Avoid overflow in textbox 2022-02-25 11:14:53 -08:00
eda_units.cpp Split EDA_UNITS out from common. 2020-10-25 00:02:52 -04:00
env_paths.cpp Fix broken environment variable substitution on Windows. 2022-01-26 09:24:36 -05:00
env_vars.cpp Add KICAD6_3RD_PARTY env variable 2021-08-27 21:11:47 +00:00
exceptions.cpp Refuse to load schematics from the future. 2021-06-30 18:32:07 +01:00
executable_names.cpp Clean up some TODOs. 2021-12-24 21:10:28 +00:00
filehistory.cpp File history (recent opened files): fix incorrect behavior when a filename 2020-08-05 15:48:03 +02:00
filename_resolver.cpp More changes to file resolvers. 2021-09-22 11:28:45 +01:00
filter_reader.cpp Start expunging NULL. 2021-07-15 15:44:45 -04:00
footprint_filter.cpp In footprint filter, check pin count mismatch first 2021-05-06 22:00:06 +00:00
footprint_info.cpp KIFACE_I -> KIFACE_BASE. 2021-09-14 23:45:14 +01:00
fp_lib_table.cpp KIFACE_I -> KIFACE_BASE. 2021-09-14 23:45:14 +01:00
gbr_metadata.cpp Start expunging NULL. 2021-07-15 15:44:45 -04:00
gestfich.cpp Revert "cmake: adding KICAD_MACOSX_APP_BUNDLE option" 2022-01-31 15:57:56 -08:00
getrunningmicrosecs.cpp Cleanup: Replace C-only deprecated headers 2019-12-05 11:03:15 -08:00
gl_context_mgr.cpp Start expunging NULL. 2021-07-15 15:44:45 -04:00
gr_basic.cpp Bug fixes in arc & textbox printing. 2022-01-31 20:00:47 +00:00
gr_text.cpp Bug fixes in arc & textbox printing. 2022-01-31 20:00:47 +00:00
grid_tricks.cpp Don't paste into hidden columns. 2022-02-18 17:12:46 +00:00
hash_eda.cpp TextBoxes for PCBNew. 2022-01-31 20:00:47 +00:00
hotkey_store.cpp Fix issue with hotkeys getting overridden by non-running Kifaces. 2022-01-10 23:41:56 +00:00
hotkeys_basic.cpp hotkeys: add missing function key strings 2022-01-27 17:20:52 +00:00
html_window.cpp Formatting. 2021-10-15 12:45:43 +01:00
kiface_base.cpp Update default paths for symbols/footprints 2021-10-17 16:07:46 -07:00
kiid.cpp Don't generate duplicate IDs in line/wire/bus tool. 2021-11-24 13:20:44 +00:00
kiway.cpp Revert "cmake: adding KICAD_MACOSX_APP_BUNDLE option" 2022-01-31 15:57:56 -08:00
kiway_express.cpp We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
kiway_holder.cpp We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
kiway_player.cpp Code cleaning. 2021-07-14 15:47:32 -04:00
languages_menu.cpp Cleanup some pgm_base.h includes 2021-06-08 21:56:00 -04:00
launch_ext.cpp Fix opening files with spaces on Linux 2021-11-07 14:31:14 +00:00
layer_id.cpp Add show/hide controls for ERC markers. 2021-12-24 17:38:50 +00:00
lib_id.cpp Remove long-dead revision support for LIB_IDs. 2021-06-30 13:12:57 +01:00
lib_table.keywords
lib_table_base.cpp Use natural order sorting for FP libraries. 2022-01-22 12:16:07 +00:00
lib_tree_model.cpp Fix lib tree searches to handle searching on library names. 2021-12-14 15:18:48 +00:00
lib_tree_model_adapter.cpp Fix lib tree searches to handle searching on library names. 2021-12-14 15:18:48 +00:00
locale_io.cpp Looks like clang (or OSX?) needs an extra include.... 2021-09-23 20:14:03 +01:00
lockfile.cpp We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
lset.cpp LSET::SeqStackupBottom2Top(): add missing user layers to list of layers 2022-01-17 10:54:19 +01:00
marker_base.cpp Bug fixes in arc & textbox printing. 2022-01-31 20:00:47 +00:00
markup_parser.cpp We handle variable replacements elsewhere. 2022-02-15 23:05:22 +00:00
netclass.cpp Fix typo initializing buswidth with linewidth value. 2021-08-01 19:33:19 +01:00
netlist.keywords Transmit pin electrical types through to pads. 2021-01-23 00:10:01 +00:00
newstroke_font.cpp Revert accidental tilde change 2021-12-15 19:28:12 -08:00
observable.cpp Add const specifiers 2020-11-18 19:50:36 +00:00
origin_transforms.cpp Add more consts all over the place 2020-10-27 11:03:35 +00:00
origin_viewitem.cpp Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
page_info.cpp We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
painter.cpp Only apply B&W printer fixes when printing. 2021-02-02 15:37:30 +00:00
paths.cpp Sprinkle some wxT 2022-02-21 18:49:36 -05:00
pcb.keywords TextBoxes for PCBNew. 2022-01-31 20:00:47 +00:00
pcb_plot_params.keywords Line styles for PCBNew shapes. 2021-12-24 12:36:59 +00:00
pgm_base.cpp Sprinkle some wxT 2022-02-21 18:49:36 -05:00
printout.cpp Implement a new settings framework across all of KiCad 2020-02-19 23:44:56 -05:00
project.cpp Fix kicad_string.h / string.cpp mismatch. 2021-07-29 16:03:25 +01:00
properties.cpp
property_mgr.cpp Hook libeval compiler up to rule parser 2020-07-20 22:11:53 +01:00
ptree.cpp We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
rc_item.cpp Don't count zero-length as duplicate 2022-01-28 16:34:34 -08:00
refdes_utils.cpp We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
render_settings.cpp Move show-bounding-boxes to a tool on the toolbars. 2022-01-17 11:56:40 +00:00
reporter.cpp Remove all wxWidgets build dependencies from REPORTER object header. 2021-08-16 07:49:39 -04:00
richio.cpp Clean up unused variable usage 2021-10-05 10:00:30 -07:00
scintilla_tricks.cpp Common: Corrects Mac OS text navigation shortcuts in Scintilla 2022-01-17 14:31:06 +00:00
search_stack.cpp We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
searchhelpfilefullpath.cpp Respect KICAD_DOCS when searching for help files 2021-04-21 19:19:25 +00:00
single_top.cpp Avoid loading python stuff when starting applications that do not use it. 2021-08-17 19:48:55 +02:00
status_popup.cpp Start expunging NULL. 2021-07-15 15:44:45 -04:00
streamwrapper.cpp Start expunging NULL. 2021-07-15 15:44:45 -04:00
string_utils.cpp Schematic and symbol text boxes. 2022-01-28 21:38:15 +00:00
stroke_params.cpp Finish with EDA_ANGLE. 2022-01-16 21:15:40 +00:00
stroke_params.keywords Shapes for schematic. 2021-12-23 20:36:07 +00:00
strtok_r.c
systemdirsappend.cpp Revert "cmake: adding KICAD_MACOSX_APP_BUNDLE option" 2022-01-31 15:57:56 -08:00
template_fieldnames.cpp We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
template_fieldnames.keywords Variable substitution framework. 2020-03-30 14:15:59 +01:00
textentry_tricks.cpp Evict the last bits of wx.h 2021-06-07 20:23:27 -04:00
title_block.cpp Import more Alitum parameters. 2021-07-08 00:19:31 +01:00
trace_helpers.cpp Trace logging for fonts. 2022-01-18 14:08:47 +00:00
undo_redo_container.cpp Start expunging NULL. 2021-07-15 15:44:45 -04:00
utf8.cpp Start expunging NULL. 2021-07-15 15:44:45 -04:00
validators.cpp Fix kicad_string.h / string.cpp mismatch. 2021-07-29 16:03:25 +01:00
wildcards_and_files_ext.cpp Add separate wildcard for OrCAD netlists 2022-02-11 09:24:20 +00:00
wx_filename.cpp Add utility method to resolve symlinks 2021-06-07 20:59:59 +00:00
wx_stl_compat.cpp Include optimization: move some things from common.h to point-of-use 2021-03-20 12:09:18 -04:00
wxdataviewctrl_helpers.cpp fix crash in wxDataViewItem GetNextItem() when there are no item. 2021-11-07 08:53:56 +01:00
xnode.cpp Escape slashes in labels and netnames. 2019-04-07 00:24:10 +01:00