diff --git a/Fltk/contextWindow.cpp b/Fltk/contextWindow.cpp index 24893d81f3ce8a6fe5cf598e05341715f8dab1e7..deff8252b1f057d0627331cea38fc34480e6fff5 100644 --- a/Fltk/contextWindow.cpp +++ b/Fltk/contextWindow.cpp @@ -67,7 +67,7 @@ geometryContextWindow::geometryContextWindow(int deltaFontSize) input[24] = new Fl_Input(2 * WB, 2 * WB + 3 * BH, IW, BH, "Label"); input[24]->value(""); input[25] = new Fl_Input(2 * WB, 2 * WB + 4 * BH, IW, BH, "Path"); - input[25]->value("Gmsh/Parameters"); + input[25]->value("Parameters"); for(int i = 0; i < 2; i++) input[i]->align(FL_ALIGN_RIGHT); for(int i = 24; i < 26; i++) input[i]->align(FL_ALIGN_RIGHT); { diff --git a/Geo/GeoStringInterface.cpp b/Geo/GeoStringInterface.cpp index 8913de0964402cb98f84bcfba68e4725c677aa38..68e7fef9559534ef698e725e92ca390826b2f3a1 100644 --- a/Geo/GeoStringInterface.cpp +++ b/Geo/GeoStringInterface.cpp @@ -241,9 +241,16 @@ void add_param(std::string par, std::string value, std::string label, { std::ostringstream sstream; sstream << "DefineConstant[ " << par << " = { " << value; - if(label.size()) sstream << ", Label \"" << label << "\""; - if(path.size()) sstream << ", Path \"" << path << "\""; - sstream << "}];"; + sstream << ", Name \""; + if(path.size() && label.size()) + sstream << path << "/" << label; + else if(path.size()) + sstream << path << "/" << par; + else if(label.size()) + sstream << label; + else + sstream << par; + sstream << "\"}];"; add_infile(sstream.str(), fileName); }