From d25d7a2be23329f1eb537e37ac2b0875e7df93e0 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 1 May 2017 16:16:13 +0200 Subject: [PATCH] Revert "Sketcher: hidding constraints - fix entry into empty sketch" This reverts commit e94a86dd700f5dd79bcc3407eec1b1ae1acf5a86. --- src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 984affc386..a51d084716 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -3972,7 +3972,7 @@ void ViewProviderSketch::draw(bool temp /*=false*/, bool rebuildinformationlayer const std::vector &constrlist = getSketchObject()->Constraints.getValues(); // After an undo/redo it can happen that we have an empty geometry list but a non-empty constraint list // In this case just ignore the constraints. (See bug #0000421) - if (geomlist->size() <= 2 /*&& !constrlist.empty()*/) { + if (geomlist->size() <= 2 && !constrlist.empty()) { rebuildConstraintsVisual(); return; }