Commit Graph

22076 Commits

Author SHA1 Message Date
wmayer
f9ef60d063 Coverity: Empty virtual destructor 2020-07-20 17:34:27 +02:00
wmayer
1a34d3da1f Coverity: Uncaught exception 2020-07-20 17:34:26 +02:00
wmayer
f37c728a2c Coverity: Division or modulo by float zero 2020-07-20 17:34:26 +02:00
wmayer
ba683bf241 Coverity: Dereference null return value 2020-07-20 17:34:26 +02:00
wmayer
fdd6d341c7 Coverity: Dereference before null check 2020-07-20 17:34:26 +02:00
wmayer
0a6929a122 Coverity: Dereference after null check 2020-07-20 17:34:25 +02:00
wmayer
c4bb1ff762 Coverity: Copied into fixed size buffer 2020-07-20 17:34:25 +02:00
wmayer
7eeb35b869 Coverity: Big parameter passed by value 2020-07-20 17:34:25 +02:00
wmayer
715160ffb2 Coverity: Argument cannot be negative (actually a bug by using the wrong index variable) 2020-07-20 17:34:24 +02:00
wmayer
89f997a289 Coverity: Use after free (_removeObject may delete the DocumentObject) 2020-07-20 17:34:24 +02:00
wmayer
36363b3f14 Coverity: Resource leak 2020-07-20 17:34:24 +02:00
wmayer
5a45efd5f9 Coverity: Uninitialized scalar variable 2020-07-20 17:34:23 +02:00
wmayer
083d0e012f Coverity: Invalid printf format string 2020-07-20 17:34:23 +02:00
Bernd Hahnebach
fbd222ca2a FEM: migrate tools, fix github links 2020-07-20 16:22:47 +02:00
Bernd Hahnebach
d93229b8c5 FEM: writer base: use warning instead of error message 2020-07-20 16:22:47 +02:00
mikeprice99
a3749d38b1 fixed door open plan symbol and make makeWindow use name parameter 2020-07-20 14:26:35 +02:00
mwganson
e6aee6b5e6 [openscad] mirror mesh feature -- rename OpenSCADUtils.mirror() to OpenSCADUtils.mirrormesh(), and provide some better interactive help information when typing OpenSCADUtils.mirrormesh() into the python console 2020-07-20 14:24:29 +02:00
mwganson
6c85779ec4 [openscad] mirror mesh feature -- separate gui from function 2020-07-20 14:24:29 +02:00
mwganson
ee7b4054ce [openscad] fix refine shape feature 2020-07-20 14:24:29 +02:00
mwganson
89ff7e16e2 [openscad] add updated icon to qrc file 2020-07-20 14:24:29 +02:00
mwganson
342fc03ce2 [openscad] work on icon for mesh mirror 2020-07-20 14:24:29 +02:00
mwganson
f429b568bb [openscad] add icon for mirror mesh feature 2020-07-20 14:24:29 +02:00
mwganson
c845ece1e3 [openscad] add ulrich's mirror mesh macro, fix error in refine shape 2020-07-20 14:24:29 +02:00
vocx-fc
0fa3f8b81b Draft: add Draft Layer unit tests
Also create a test `Layer` in the `draft_test_objects` script.
2020-07-20 14:21:15 +02:00
vocx-fc
ee11678a58 Draft: migrate Layer object and function to the new structure
Move `make_layer` to `draftmake`; `Layer` and `LayerContainer`
to `draftobjects`; `ViewProviderLayer` and `ViewProviderLayerContainer`
to `draftviewproviders`.

The make function and the classes are imported in `Draft.py`
to support the usage of the older `VisGroup`.
2020-07-20 14:21:15 +02:00
vocx-fc
ff4cb41860 Draft: move GuiCommand for Draft Layer to its own module 2020-07-20 14:21:15 +02:00
Mateusz Skowroński
06f72637d7 Mod/Web: Use of deprecated not thread-safe setter, use setUrlRequestInterceptor instead. 2020-07-20 14:18:12 +02:00
paul lee
f8584455f8 [ArchWall] Failed if Sketch as Base has Point, now OK
FC Forum Discussion -
https://forum.freecadweb.org/viewtopic.php?f=23&t=48668&sid=ba6dd68ad32eefbad6ae95d8fadc30e6#p416779
2020-07-20 14:17:28 +02:00
mwganson
2e6133f63f avoid saving to parameters if new shortcut is the default, better check for if setting shortcut was success 2020-07-20 14:11:14 +02:00
mwganson
9052be3e74 return false when unable to set shortcut 2020-07-20 14:11:14 +02:00
Mark Ganson TheMarkster
4e70a108f4 convert tab to spaces 2020-07-20 14:11:14 +02:00
Mark Ganson TheMarkster
488e8e4e6a move preprocessor directives back to column 1 2020-07-20 14:11:14 +02:00
Mark Ganson TheMarkster
e329e6ee03 remove some commented lines 2020-07-20 14:11:14 +02:00
mwganson
dd8b1c0d1f [Python Gui] add new command Gui.setCommandShortcut(), fix bug in Gui.getCommandShortcut() and Gui.getCommandInfo() where user has changed shortcut via customize dialog, but these 2 commands returned previous default information 2020-07-20 14:11:14 +02:00
mwganson
07dd96beb2 [Standard Views] change preference label to default camera orientation 2020-07-20 13:48:37 +02:00
mwganson
99585f3a85 [Standard Views] add Home view command. Default shortcut is 'Home' key. Restores camera orientation to current home view, configurable in edit menu -> preferences -> display -> navigation -> New Document Camera Orientation / Home view. 2020-07-20 13:48:37 +02:00
Bernd Hahnebach
a860aac641 FEM: elmer tasks, comment regression added with bf209daba4d1 2020-07-20 08:09:52 +02:00
mwganson
283ef3ce86 [Sketcher] add python command sketch.getGeoVertexIndex(int index) -- returns tuple (geoId, posId) of vertex at that index in the sketch. usage example: (geoId, posId) = App.ActiveDocument.Sketch.getGeoVertexIndex(int(Gui.Selection.getSelectionEx()[0].SubElementNames[0][6:])-1) 2020-07-19 05:50:12 +02:00
wmayer
32a7aec18e Gui: [skip ci] add some security checks before dereferencing pointer to QTreeWidgetItem 2020-07-18 12:05:02 +02:00
mwganson
7fdb6ac13b [crash fix] Edit Parameters right click was causing crash unless right clicking on item 2020-07-18 11:55:24 +02:00
wmayer
cba06a2ed5 PVS: V571 Recurring check. A condition was already verified in previous line 2020-07-18 10:59:28 +02:00
wmayer
bd58cfe81a PVS: V506 Pointer to local variable '_value' is stored outside the scope of this variable. Such a pointer will become invalid. 2020-07-18 10:59:28 +02:00
wmayer
2db95da274 PVS: V1016 Value is out of range of enum values. This causes unspecified or undefined behavior. 2020-07-18 10:59:28 +02:00
wmayer
380a448dd1 PVS: V560 A part of conditional expression is always true 2020-07-18 10:59:28 +02:00
wmayer
70c3cc7c03 PVS: V646 Consider inspecting the application's logic. It's possible that 'else' keyword is missing. 2020-07-18 10:59:28 +02:00
wmayer
4bbdfb5f7b PVS: V768 The expression is of enum type. It is odd that it is used as an expression of a Boolean-type. 2020-07-18 10:59:28 +02:00
wmayer
46a7a68064 PVS: V1046 Unsafe usage of the 'bool' and 'int' types together in the operation '&='. 2020-07-18 10:59:28 +02:00
wmayer
af42f439d9 PVS: V612 The '(4) / 3' expression was implicitly cast from 'int' type to 'float' type. Consider utilizing an explicit type cast to avoid the loss of a fractional part 2020-07-18 10:59:28 +02:00
wmayer
67a986bb2d PVS: V601 The bool type is implicitly cast to the double type 2020-07-18 10:59:28 +02:00
wmayer
05d4496d96 PVS: V688 The local variable possesses the same name as one of the class members, which can result in a confusion 2020-07-18 10:59:28 +02:00