-// Copyright (C) 2019-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2019-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
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");
QGridLayout* aGroupLay = dynamic_cast<QGridLayout*>(myGroupBox->layout());
int row = (int)myXSpin.size();
- QString aPoleStr = tr("Pole %1");
+ QString aPoleStr = translate("Pole %1");
aPoleStr = aPoleStr.arg(myXSpin.size() + 1);
QGroupBox* aPoleGroupBox = new QGroupBox(aPoleStr, myGroupBox);
bool PartSet_WidgetBSplinePoints::isValidSelectionCustom(const ModuleBase_ViewerPrsPtr& theValue)
{
- bool aValid = true;
-
PartSet_Module* aModule = dynamic_cast<PartSet_Module*>(myWorkshop->module());
if (aModule->sketchReentranceMgr()->isInternalEditActive())
return true; // when internal edit is started a new feature is created. I has not results, AIS
AttributeDoubleArrayPtr aWeightsArray = aData->realArray(myWeightsAttr);
if (aPointArray->isInitialized()) {
- while (myXSpin.size() < aPointArray->size())
+ while ((int)myXSpin.size() < aPointArray->size())
createNextPoint();
std::vector<ModuleBase_LabelValue*>::iterator aXIt = myXSpin.begin();