diff --git a/src/neighborhood_rules/vonNeumannNeighborhoodRule.cpp b/src/neighborhood_rules/vonNeumannNeighborhoodRule.cpp index f67f34768dff7a8cbe1c2db7b44485fae7a49682..59ce07087a79c59b172d59fd1fcc2577fb992875 100644 --- a/src/neighborhood_rules/vonNeumannNeighborhoodRule.cpp +++ b/src/neighborhood_rules/vonNeumannNeighborhoodRule.cpp @@ -17,7 +17,9 @@ vonNeumannNeighborhoodRule::vonNeumannNeighborhoodRule(int _radius) if( abs(i+j) <= _radius) { newCord.x = i; newCord.y = j; - format.positions.push_back(newCord); + if(!(newCord.x == 0 && newCord.y == 0)) { + format.positions.push_back(newCord); + } } } } diff --git a/src/src.pro b/src/src.pro index deee726a9cd402853ef228240a9776df088ac03c..a46c4dc112379e47b3ed5c0cecd48c4f61b5f751 100644 --- a/src/src.pro +++ b/src/src.pro @@ -5,6 +5,9 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++14 TEMPLATE = app +# Optimisations, flag pour garder les infos de debug +QMAKE_CXXFLAGS += -O2 -g + # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0