FreeCAD: master 480d23f8

Author Committer Branch Timestamp Parent
Abdullah Tahiri wmayer master 2015-06-19 13:56:14 master 93c836fd
Changeset Sketcher: Bug fix: Unexpected crashes during certain operations

===============================================================

The sketcher crashed for example during effecting a fillet operation.

Cause:
The ElementsWidget/ConstraintWidget was being updated as a consequence of adding/removing geometry/constraints, and it was effecting
a selection after the update, in cases where the geometry in the screen was not being redraw (because the sketchobject was still unsolved), therefore
trying to select an element that according to ViewProvider did not exist (as it is created during redraw).

Solution:
Widgets update when their properties changes, provided that a redraw is effected (which actually also saves some (negligible) time, as they are only updated when they should).
mod - src/Mod/Sketcher/Gui/ViewProviderSketch.cpp Diff File