diff --git a/Geo/MQuadrangle.cpp b/Geo/MQuadrangle.cpp
index d7a3bea47f579798c5e241a802d5ee8d1316ecba..7d08bed4526d1cc7f81f6137fbfec0268506a701 100644
--- a/Geo/MQuadrangle.cpp
+++ b/Geo/MQuadrangle.cpp
@@ -26,7 +26,7 @@ void MQuadrangle::getEdgeRep(bool curved, int num, double *x, double *y, double
   MVertex *v1 = _v[edges_quad(num, 1)];
   x[0] = v0->x(); y[0] = v0->y(); z[0] = v0->z();
   x[1] = v1->x(); y[1] = v1->y(); z[1] = v1->z();
-  if(CTX::instance()->mesh.lightLines > 1){
+  if(CTX::instance()->mesh.lightLines){
     static const int vv[4] = {2, 3, 0, 1};
     MVertex *v2 = _v[vv[num]];
     SVector3 t1(x[1] - x[0], y[1] - y[0], z[1] - z[0]);
diff --git a/Geo/MTriangle.cpp b/Geo/MTriangle.cpp
index 36ab88f843f0d9782722015ec90d908ad0c31aa7..2d6c685d9b6b987a1b3b47136be66bec0fa86e77 100644
--- a/Geo/MTriangle.cpp
+++ b/Geo/MTriangle.cpp
@@ -27,7 +27,7 @@ void MTriangle::getEdgeRep(bool curved, int num, double *x, double *y, double *z
   MVertex *v1 = _v[edges_tri(num, 1)];
   x[0] = v0->x(); y[0] = v0->y(); z[0] = v0->z();
   x[1] = v1->x(); y[1] = v1->y(); z[1] = v1->z();
-  if(CTX::instance()->mesh.lightLines > 1){
+  if(CTX::instance()->mesh.lightLines){
     static const int vv[3] = {2, 0, 1};
     MVertex *v2 = _v[vv[num]];
     SVector3 t1(x[1] - x[0], y[1] - y[0], z[1] - z[0]);