Skip to content
Snippets Groups Projects
Commit 2c890f12 authored by Riccardo Maria Bianchi's avatar Riccardo Maria Bianchi :sunny:
Browse files

Merge branch 'fix-Write-CustomShape' into 'master'

Fix to GeoModelWrite - Custom Shape

See merge request !7
parents a0df9b1c e1b7d249
Branches
Tags
1 merge request!7Fix to GeoModelWrite - Custom Shape
Pipeline #1593480 passed
......@@ -633,12 +633,12 @@ QVariant WriteGeoModel::storeShape(const GeoShape* shape)
{
QString shapeType = QString::fromStdString(shape->type());
//JFB Commented out: qDebug() << "storeShape() - shape name:" << shapeType << ", address:" << shape;
// get shape parameters
// LArCustomShape is deprecated. Write it out as a GeoUnidentifiedShape;
if (shapeType=="CustomShape") shapeType="UnidentifiedShape";
// get shape parameters
QString shapePars = getShapeParameters(shape);
// LArCustomShape is deprecated. Write it out as a GeoUnidentifiedShape;
if (shapeType=="CustomShape") shapeType="UnidentifiedShape";
// store the shape in the DB and returns the ID
return storeObj(shape, shapeType, shapePars);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment