From 41c67e16f8ab8e8c2fc6e7bea6c192b2b4d10e74 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Thu, 11 Apr 2019 09:47:57 +0200 Subject: [PATCH] Fix polyline generator --- .../demo/Polyhedron/Plugins/PCA/Basic_generator_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/PCA/Basic_generator_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PCA/Basic_generator_plugin.cpp index b3be5530fe6..9cbb92e4c73 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PCA/Basic_generator_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PCA/Basic_generator_plugin.cpp @@ -687,14 +687,14 @@ void Basic_generator_plugin::generateLines() double coord[3]; bool ok = true; if (list.isEmpty()) return; - if(!dock_widget->polygon_checkBox->isChecked()&& !list.size()%3!=0){ + if(!dock_widget->polygon_checkBox->isChecked() && list.size()%3!=0){ QMessageBox *msgBox = new QMessageBox; msgBox->setWindowTitle("Error"); msgBox->setText("ERROR : Input should consists of triplets."); msgBox->exec(); return; } - else if(dock_widget->polygon_checkBox->isChecked()&& !list.size()%2!=0){ + else if(dock_widget->polygon_checkBox->isChecked()&& list.size()%2!=0){ QMessageBox *msgBox = new QMessageBox; msgBox->setWindowTitle("Error"); msgBox->setText("ERROR : Input should consists of pairs.");