Seth Hillbrand
3a730361d3
Fix swap interval checking
Checking for the existence of the call only validated that our header
defined the value, not that the video card/driver supported the call.
We query the extensions string directly to check for support. This
should fix both the X11 and virtualization issues (potentially other
crashes with older video cards as well)
Fixes https://gitlab.com/kicad/code/kicad/issues/8944
(cherry picked from commit 7c9340f855 )
4 years ago
jean-pierre charras
e00e9ff41f
PANEL_TEMPLATE_FIELDNAMES: fix incorrect management of boolean options
(it was impossible to disable them)
Fixes #10280
https://gitlab.com/kicad/code/kicad/issues/10280
4 years ago
Seth Hillbrand
3ff87858de
Prevent cvpcb from losing text focus on filter
Refresh event changes focus (on GTK). We fix this by storing the
existing insertion point in the text box, refocusing and restoring the
text position
Fixes https://gitlab.com/kicad/code/kicad/issues/10029
(cherry picked from commit 05d3dc533b )
4 years ago
jean-pierre charras
0f0a540a65
Panel 3D previewer: for show 3D body shapes, regardless the 3D viewer itself.
the Panel 3D previewer is made to show 3D body shapes, so do not show them
when disabled in the board 3D viewer, is really stupid.
4 years ago
jean-pierre charras
bf5cdec743
QA test code: fix some issues:
- in python tests force the "C" locale is in use (remove wx alerts in some locales)
- disable some new DRC tests that are irrelevant in QA tests and create false positives
4 years ago
jean-pierre charras
7fa451dc93
Thermal reliefs: fix incorrect calculation
commit eeef655 did not fix the calculations.
4 years ago
Seth Hillbrand
b01715dd22
Fix crash in SVG plot
NULL fonts need to be assigned a default.
KSC internal ticket #459
4 years ago
Seth Hillbrand
3ace4446e7
Use 'special' escaping for certain fields
Most fields are escaped using the `\` notation. But the VALUE field and
the symbol name need to be escaped using braces notation.
Fixes https://gitlab.com/kicad/code/kicad/issues/10097
(cherry picked from commit 71e7b4b77b )
4 years ago
Seth Hillbrand
88a8ad2ca1
Keep symbol synced with edit tool
Undo/Redo can change the symbol referenced by the symbol drawing tool.
This updates the current symbol before important steps to keep the
system synced
Fixes https://gitlab.com/kicad/code/kicad/issues/10125
(cherry picked from commit b8a7a66a0a )
4 years ago
Seth Hillbrand
5a8b0921eb
Don't remove last point in libedit
SHAPE_LINE_CHAIN in libedit doesn't make a polygon, so we always need
the last point and it shouldn't be closed
Fixes https://gitlab.com/kicad/code/kicad/issues/9934
(cherry picked from commit 55087a9e82 )
4 years ago
Seth Hillbrand
c340760eaa
Prevent unneeded fallback
Starting in be8327bd54 , we assume that all
exceptions in DoRePaint() are caused by OpenGL. But many calls in
UpdateItems() will throw if there are internal errors such as
std::out_of_range. Here, we catch those errors and simply skip ahead
rather than falling back to Cairo
(cherry picked from commit 444801ada6 )
4 years ago
Steffen Mauch
3ced3afa68
eeschema: automatic generated symbol library from EAGLE plugin does not include footprint reference
Fixes https://gitlab.com/kicad/code/kicad/issues/10262
4 years ago
Seth Hillbrand
e4961cb956
Update pin cache when undoing
The pin cache is invalidated by swap, so we need to ensure that it is
reset when we undo a change to the pins in schematic editor
Fixes https://gitlab.com/kicad/code/kicad/issues/10272
(cherry picked from commit 7f1648934f )
4 years ago
Ian McInerney
bd828f598c
Fix compile error with UTF8 unicode wxWidgets build
Fixes https://gitlab.com/kicad/code/kicad/issues/10210
4 years ago
Steffen Mauch
502e34349e
eeschema: EAGLE plugin does not reference footprint with library suffix
Fixes https://gitlab.com/kicad/code/kicad/issues/10261
4 years ago
Seth Hillbrand
30549a5e6a
Don't strip extensions twice in BOM export
Exporting the Bill of Materials uses the netlist exporter. Both of
these routines were stripping the extension, leading to projects like
"test.project.kicad_pro" having the project name stripped. We separate
the BOM netlist export from generic plugin netlist export to allow the
correct behavior when exporting netlists and generating BOMs
Fixes https://gitlab.com/kicad/code/kicad/issues/10270
(cherry picked from commit bef762e652 )
4 years ago
Seth Hillbrand
9ca41cc8ee
Set readable flags correctly on open
Missing files may be thrown during open. These should have existence
and readable flags set correctly
(cherry picked from commit a05ec04ee8 )
4 years ago
jean-pierre charras
cd0ac9e698
eeschema, DIALOG_FIELD_PROPERTIES: fix a few issues.
(incorrect handling of H and V justify bitmap buttons
Fixes #10267
https://gitlab.com/kicad/code/kicad/issues/10267
4 years ago
Steffen Mauch
82f147ecef
pcbnew: EAGLE plugin is case sensitive to >VALUE / >NAME
Fixes https://gitlab.com/kicad/code/kicad/issues/10253
4 years ago
Steffen Mauch
a5307c6f59
pcbnew: fixing eagle_plugin with empty class names
Fixes #10229
https://gitlab.com/kicad/code/kicad/issues/10229
4 years ago
jean-pierre charras
eeef65533a
Pad Thermal Reliefs: fix spoke incorrect angle for rotated pads.
Fixes #10251
https://gitlab.com/kicad/code/kicad/issues/10251
4 years ago
jean-pierre charras
c8d6ad0714
Pcbnew, dimensions fix params incorrectly saved for ortho dim
Fixes #10254
https://gitlab.com/kicad/code/kicad/issues/10254
4 years ago
Seth Hillbrand
b0fddef9b4
Don't rename existing schematic file
We should never leave a situation where the schematic file may no longer
exist (if the first rename succeeds and the second fails). So, make a
backup copy of the original schematic file and then attempt to rename
the autosave over the first file. In this case, if either attempt
fails, we do not lose the original file
Fixes https://gitlab.com/kicad/code/kicad/issues/10074
Fixes https://gitlab.com/kicad/code/kicad/issues/10256
Fixes https://gitlab.com/kicad/code/kicad/issues/10219
(cherry picked from commit b1658fdf9a )
4 years ago
Marek Roszko
cc5003a919
Update python for the pad wxSize switch
4 years ago
Marek Roszko
6d2fd17a39
Remove a wxPoint dependence in trigo
4 years ago
Jon Evans
bf38cb56b7
Handle footprint shapes in polygon creation
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10259
(cherry picked from commit f9d8ec6137 )
4 years ago
Jon Evans
4be56825bb
Fix creating polygons from footprint rule areas
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10257
(cherry picked from commit e9b91b6fab )
4 years ago
Marek Roszko
d7e790b6c1
Remove wx/gdicmn.h from trigo.h
4 years ago
Marek Roszko
726d873c53
Tear down the wxPoint trigo helpers
4 years ago
Marek Roszko
e4dbfcd92d
Swap out some wxSize for VECTOR2I
4 years ago
Marek Roszko
98ee6c5f85
Cleanup some wx/gdicmn.h includes
4 years ago
Marek Roszko
5d3609b20b
Nix the deprecated binary/unary base class that aren't actually needed
The std::unordered_map custom function objects here don't require inheritance from the deprecated base
4 years ago
Seth Hillbrand
e6b5cb3a5c
Fix missing FOOTPRINT cast in swig
Fixes https://gitlab.com/kicad/code/kicad/issues/10236
(cherry picked from commit ca8cf14dff )
4 years ago
Seth Hillbrand
dda569d486
Don't split legacy paths
The '.' is a valid character in the legacy preferences, not a separator.
Also adds fail-safe catch for JSON throws
Fixes https://gitlab.com/kicad/code/kicad/issues/10211
(cherry picked from commit a326d777f0 )
4 years ago
Thomas Pointhuber
de39bffd90
altium: Fix board outline import with arcs using SHAPE_LINE_CHAIN instead of a hack
4 years ago
jean-pierre charras
2bfff9d4ce
Fix crash when trying tp draw a text with over-bar.
(missing initialization of a pointer)
Fixes #10252
https://gitlab.com/kicad/code/kicad/issues/10252
4 years ago
jean-pierre charras
a09741597f
qa test: allows epsilon (1 unit) to compare 2 coordinates
It avoids false qa errors (false positive) when comparing coordinates after transform
4 years ago
jean-pierre charras
c2b54faceb
CvPcb: fix crash due to a null pointer: pcbconfig() can return null.
CvPcb has no config option and pcbconfig() returns nullptr.
In this case use default settings.
Fixes #10250
https://gitlab.com/kicad/code/kicad/issues/10250
4 years ago
Mark Roszko
0d64fdc5c7
Put back original expected segment data for unit test
4 years ago
Jeff Young
cbd665db7b
Remove markup_parser from headers so PEGTL doesn't leak windows.h.
4 years ago
Marek Roszko
38a25fbc4d
Fix windows compile error
pegtl.hpp is dumb and leaks windows.h which then causes #define conflicts
4 years ago
Seth Hillbrand
ed35f4bfc5
Fix pad snapping in renumber pads
Snap shouldn't be looking for other items in this routine or using the
grid
Fixes https://gitlab.com/kicad/code/kicad/issues/10238
(cherry picked from commit ed9a3deb57 )
4 years ago
Marek Roszko
ac715d2e51
Scoop up some more wxPoint instances
4 years ago
Jeff Young
8e4a4306c7
Go back to using inter-character spacing from the stroke font.
Fixes https://gitlab.com/kicad/code/kicad/issues/1078
4 years ago
Jeff Young
6f52edd618
Replace accidental delete of ExpandNode calls.
4 years ago
Wayne Stambaugh
3e373da8c2
Add missing "-unknown" suffix to KiCadVersion.cmake.
4 years ago
Seth Hillbrand
2a0e4a8324
Catch errors from `load()`
Loading footprints may throw in some cases. We need to catch these
nicely without breaking out of the full loading process
Fixes https://gitlab.com/kicad/code/kicad/issues/10213
(cherry picked from commit 1874ad2f7e )
4 years ago
Wayne Stambaugh
ff38853886
Make footprint and symbol editors use MRU path for new libraries.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10216
4 years ago
Jeff Young
f40f516af6
KiCad Manager doesn't implement Kiface().
Fixes crash bug from Help > List Hotkeys in Kicad Manager.
4 years ago
Jeff Young
e21fa31f64
Rip out rest of macHack architecture.
4 years ago