mirror of https://github.com/CGAL/cgal
Fix polyline generator
This commit is contained in:
parent
c2262672c3
commit
41c67e16f8
|
|
@ -687,14 +687,14 @@ void Basic_generator_plugin::generateLines()
|
||||||
double coord[3];
|
double coord[3];
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
if (list.isEmpty()) return;
|
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;
|
QMessageBox *msgBox = new QMessageBox;
|
||||||
msgBox->setWindowTitle("Error");
|
msgBox->setWindowTitle("Error");
|
||||||
msgBox->setText("ERROR : Input should consists of triplets.");
|
msgBox->setText("ERROR : Input should consists of triplets.");
|
||||||
msgBox->exec();
|
msgBox->exec();
|
||||||
return;
|
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;
|
QMessageBox *msgBox = new QMessageBox;
|
||||||
msgBox->setWindowTitle("Error");
|
msgBox->setWindowTitle("Error");
|
||||||
msgBox->setText("ERROR : Input should consists of pairs.");
|
msgBox->setText("ERROR : Input should consists of pairs.");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue