From 0f0f9e6b7d25ca9f33ddf22325b480c8a9d248b3 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 20 Apr 2012 16:59:08 +0000
Subject: [PATCH]

---
 Common/GmshMessage.cpp | 2 +-
 Fltk/onelabWindow.cpp  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Common/GmshMessage.cpp b/Common/GmshMessage.cpp
index b5e70c7be6..8401cd70a0 100644
--- a/Common/GmshMessage.cpp
+++ b/Common/GmshMessage.cpp
@@ -684,7 +684,7 @@ void Msg::ExchangeOnelabParameter(const std::string &key,
   if(copt.count("ShortHelp")) ps[0].setLabel(copt["ShortHelp"][0]);
   if(noLoop && copt.count("Loop")) ps[0].setAttribute("Loop", copt["Loop"][0]);
   if(noGraph && copt.count("Graph")) ps[0].setAttribute("Graph", copt["Graph"][0]);
-  if(copt.count("Hightlight")) ps[0].setAttribute("Highlight", copt["Hightlight"][0]);
+  if(copt.count("Highlight")) ps[0].setAttribute("Highlight", copt["Highlight"][0]);
   _onelabClient->set(ps[0]);
 #endif
 }
diff --git a/Fltk/onelabWindow.cpp b/Fltk/onelabWindow.cpp
index 1031a58873..104784d21b 100644
--- a/Fltk/onelabWindow.cpp
+++ b/Fltk/onelabWindow.cpp
@@ -658,7 +658,7 @@ static void importPhysicalGroups(onelab::client *c, GModel *m)
            (dim == 1) ? "Line" : "Point") + num.str();
       onelab::region p(name, num.str());
       p.setDimension(dim);
-      p.setAttribute("ReadOnly", "Yes");
+      p.setReadOnly(true);
       c->set(p);
     }
   }
-- 
GitLab