diff --git a/Mesh/meshGFaceTransfinite.cpp b/Mesh/meshGFaceTransfinite.cpp
index 1fb80a2567ffe5415e51c9b22ed279be31fd0b90..696acf65b536ed4169515560a8c4b4b7b9f62e26 100644
--- a/Mesh/meshGFaceTransfinite.cpp
+++ b/Mesh/meshGFaceTransfinite.cpp
@@ -193,7 +193,7 @@ int MeshTransfiniteSurface(GFace *gf)
     MVertex *v = m_vertices[i];
     if(v == corners[0] || v == corners[1] || v == corners[2] ||
        (corners.size() == 4 && v == corners[3])){
-      if(iCorner > 4){
+      if(iCorner > 3){
         Msg::Error("Surface %d transfinite parameters are incoherent", gf->tag());
         return 0;
       }