From: nds Date: Wed, 27 Apr 2016 12:58:43 +0000 (+0300) Subject: #1465 Fatal error when Build Wire X-Git-Tag: V_2.3.0~92 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1766538669edf9e3bd868a8ee49a66c8d42333b8;p=modules%2Fshaper.git #1465 Fatal error when Build Wire --- diff --git a/src/ModuleBase/ModuleBase_WidgetAction.cpp b/src/ModuleBase/ModuleBase_WidgetAction.cpp index 84b5ceb64..c9cffda31 100755 --- a/src/ModuleBase/ModuleBase_WidgetAction.cpp +++ b/src/ModuleBase/ModuleBase_WidgetAction.cpp @@ -26,11 +26,11 @@ ModuleBase_WidgetAction::ModuleBase_WidgetAction(QWidget* theParent, myActionID = attributeID(); setAttributeID(""); + myButton = new QToolButton(this); QString aText = QString::fromStdString(theData->widgetLabel()); QString aToolTip = ModuleBase_Tools::wrapTextByWords( QString::fromStdString(theData->widgetTooltip()), myButton, DEFAULT_TOOL_TIP_WIDTH); - myButton = new QToolButton(this); myButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); aControlLay->addWidget(myButton);