[Sketcher] Grid snapping is enabled only if grid is shown

This commit is contained in:
0penBrain
2020-04-11 16:05:26 +02:00
committed by abdullahtahiriyo
parent 23e26e2ca6
commit b094ca2ed4

View File

@@ -500,7 +500,7 @@ bool ViewProviderSketch::keyPressed(bool pressed, int key)
void ViewProviderSketch::snapToGrid(double &x, double &y)
{
if (GridSnap.getValue() != false) {
if (GridSnap.getValue() && ShowGrid.getValue()) {
// Snap Tolerance in pixels
const double snapTol = GridSize.getValue() / 5;