QString file(const QString& path, bool withExt)
{
QString fPath = path;
- while (!fPath.isEmpty() && (fPath[fPath.length() - 1] == '\\' ||
+ while (!fPath.isEmpty() && (fPath[fPath.length() - 1] == '\\' ||
fPath[fPath.length() - 1] == '/'))
fPath.remove(fPath.length() - 1, 1);
if (std::dynamic_pointer_cast<ModelAPI_ResultParameter>(theObject).get()) {
double aValue;
ResultParameterPtr aParam;
- if (ModelAPI_Tools::findVariable(theObject->document(),
+ if (ModelAPI_Tools::findVariable(theObject->document(),
FeaturePtr(), qPrintable(theName), aValue, aParam)) {
const char* aKeyStr = "Selected parameter can not be renamed to: %1. "
"There is a parameter with the same name. Its value is: %2.";
QString aErrMsg(QObject::tr(aKeyStr).arg(qPrintable(theName)).arg(aValue));
- // We can not use here a dialog box for message -
+ // We can not use here a dialog box for message -
// it will crash editing process in ObjectBrowser
Events_InfoMessage("XGUI_Tools", aErrMsg.toStdString()).send();
return false;