diff --git a/bin/CRITERIAGEO/dialogSelectField.cpp b/bin/CRITERIAGEO/dialogSelectField.cpp index 735e1f18..d906be98 100644 --- a/bin/CRITERIAGEO/dialogSelectField.cpp +++ b/bin/CRITERIAGEO/dialogSelectField.cpp @@ -46,6 +46,9 @@ DialogSelectField::DialogSelectField(Crit3DShapeHandler* shapeHandler, QString f if (dialogType == RASTERIZE || dialogType == RASTERIZE_WITHBASE) fields << "Shape ID"; + if (dialogType == SHAPESTYLE) + fields << "Edges only"; + for (int i = 0; i < shapeHandler->getFieldNumbers(); i++) { typeField = shapeHandler->getFieldType(i); diff --git a/bin/CRITERIAGEO/mainWindow.cpp b/bin/CRITERIAGEO/mainWindow.cpp index 7ad89334..52d92f28 100644 --- a/bin/CRITERIAGEO/mainWindow.cpp +++ b/bin/CRITERIAGEO/mainWindow.cpp @@ -608,6 +608,12 @@ void MainWindow::removeShape(GisObject* myObject) void MainWindow::setShapeStyle(GisObject* myObject, std::string fieldName) { MapGraphicsShapeObject* shapeObject = getShapeObject(myObject); + if (fieldName == "Edges only") + { + shapeObject->setFill(false); + return; + } + DBFFieldType fieldType = myObject->getShapeHandler()->getFieldType(fieldName); if (fieldType == FTString) @@ -626,7 +632,8 @@ void MainWindow::setShapeStyle(GisObject* myObject, std::string fieldName) void MainWindow::setShapeStyle_GUI(GisObject* myObject) { - DialogSelectField shapeFieldDialog(myObject->getShapeHandler(), myObject->fileName, false, SHAPESTYLE); + bool isOnlyNumeric = false; + DialogSelectField shapeFieldDialog(myObject->getShapeHandler(), myObject->fileName, isOnlyNumeric, SHAPESTYLE); if (shapeFieldDialog.result() == QDialog::Accepted) { std::string fieldName = shapeFieldDialog.getFieldSelected().toStdString();