From 6e8f9848b0c2d90f59887c1058b04d5d0fd87efb Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 3 Sep 2011 12:23:30 +0000
Subject: [PATCH] copy InSphereCenter when copying surfaces

---
 Geo/Geo.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Geo/Geo.cpp b/Geo/Geo.cpp
index 09b08170d6..f54871c262 100644
--- a/Geo/Geo.cpp
+++ b/Geo/Geo.cpp
@@ -1025,6 +1025,7 @@ static void CopySurface(Surface *s, Surface *ss, bool copyMeshingMethod)
       Msg::Warning("Only automatic transfinite surface specifications can be copied");
   }
   ss->Generatrices = List_Create(List_Nbr(s->Generatrices), 1, sizeof(Curve *));
+  ss->InSphereCenter = s->InSphereCenter; // FIXME: hack...
   List_Copy(s->Generatrices, ss->Generatrices);
   End_Surface(ss);
 }
-- 
GitLab