X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetBSplinePoints.cpp;fp=src%2FPartSet%2FPartSet_WidgetBSplinePoints.cpp;h=b6a17e16bca8bbffe03025eee40e111d05d1be6c;hb=1dfcab3d738e427bea678317e167c587dfbff195;hp=5819a5f6a72b7cd7d086de99e3ebc2997e3a9738;hpb=a77927df4517b2ad5f55402ea7226a7ada49df18;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetBSplinePoints.cpp b/src/PartSet/PartSet_WidgetBSplinePoints.cpp index 5819a5f6a..b6a17e16b 100644 --- a/src/PartSet/PartSet_WidgetBSplinePoints.cpp +++ b/src/PartSet/PartSet_WidgetBSplinePoints.cpp @@ -87,7 +87,10 @@ PartSet_WidgetBSplinePoints::PartSet_WidgetBSplinePoints(QWidget* theParent, myBox->setFlat(false); aMainLayout->addWidget(myBox); - bool aAcceptVariables = theData->getBooleanAttribute(DOUBLE_WDG_ACCEPT_EXPRESSIONS, true); +#ifdef _DEBUG + bool aAcceptVariables = +#endif + theData->getBooleanAttribute(DOUBLE_WDG_ACCEPT_EXPRESSIONS, true); // B-spline weights attribute myWeightsAttr = theData->getProperty("weights"); @@ -167,8 +170,6 @@ void PartSet_WidgetBSplinePoints::removeLastPoint() bool PartSet_WidgetBSplinePoints::isValidSelectionCustom(const ModuleBase_ViewerPrsPtr& theValue) { - bool aValid = true; - PartSet_Module* aModule = dynamic_cast(myWorkshop->module()); if (aModule->sketchReentranceMgr()->isInternalEditActive()) return true; // when internal edit is started a new feature is created. I has not results, AIS @@ -359,7 +360,7 @@ bool PartSet_WidgetBSplinePoints::restoreValueCustom() AttributeDoubleArrayPtr aWeightsArray = aData->realArray(myWeightsAttr); if (aPointArray->isInitialized()) { - while (myXSpin.size() < aPointArray->size()) + while ((int)myXSpin.size() < aPointArray->size()) createNextPoint(); std::vector::iterator aXIt = myXSpin.begin();