1. A fix for the circle object.
QString aLabelText = QString::fromStdString(theData->widgetLabel());
QString aLabelIcon = QString::fromStdString(theData->widgetIcon());
myLabel = new QLabel(aLabelText, myContainer);
- myLabel->setPixmap(QPixmap(aLabelIcon));
+ if (!aLabelIcon.isEmpty())
+ myLabel->setPixmap(QPixmap(aLabelIcon));
aControlLay->addWidget(myLabel);
mySpinBox = new QDoubleSpinBox(myContainer);
bool PartSet_OperationFeatureCreate::isPointWidget() const
{
- return dynamic_cast<ModuleBase_WidgetPoint2D*>(myActiveWidget);
+ return dynamic_cast<ModuleBase_WidgetPoint2D*>(myActiveWidget) ||
+ dynamic_cast<ModuleBase_WidgetPoint2dDistance*>(myActiveWidget);
}
bool PartSet_OperationFeatureCreate::setWidgetPoint(double theX, double theY)