From 87a4570b2f2dd79c00d85b140c587f0e9e88a837 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 21 Jan 2015 12:06:41 +0300 Subject: [PATCH] Issue #359 Axis with the same point on both ends --- src/ConstructionPlugin/axis_widget.xml | 1 + src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp | 2 +- src/ModuleBase/ModuleBase_WidgetMultiSelector.h | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ConstructionPlugin/axis_widget.xml b/src/ConstructionPlugin/axis_widget.xml index 364fa2b3c..f612a83d0 100644 --- a/src/ConstructionPlugin/axis_widget.xml +++ b/src/ConstructionPlugin/axis_widget.xml @@ -14,5 +14,6 @@ tooltip="Select a second point" shape_types="vertex"> + diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index f3d2807da..5ee8ac64a 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -37,7 +37,7 @@ ModuleBase_WidgetMultiSelector::ModuleBase_WidgetMultiSelector(QWidget* theParen const Config_WidgetAPI* theData, const std::string& theParentId) : ModuleBase_ModelWidget(theParent, theData, theParentId), - myWorkshop(theWorkshop), myIsActive(false), myUseSubShapes(false) + myWorkshop(theWorkshop), myIsActive(false) { myMainWidget = new QWidget(theParent); QGridLayout* aMainLay = new QGridLayout(myMainWidget); diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.h b/src/ModuleBase/ModuleBase_WidgetMultiSelector.h index 111b27f0d..bf8f8841a 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.h +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.h @@ -83,7 +83,6 @@ protected slots: ModuleBase_IWorkshop* myWorkshop; /// If true then local selector has to be activated in context - bool myUseSubShapes; bool myIsActive; typedef QPair GeomSelection; -- 2.39.2