From e50b06abc29f83baadc459666538429399a0bf9f Mon Sep 17 00:00:00 2001 From: Keisuke Inoue Date: Thu, 28 Nov 2024 17:03:21 +0900 Subject: [PATCH] Bug: specifying "1d", "1.5d" to gridtype make iRIC crash. #1471 --- libs/guicore/solverdef/solverdefinitiongridtype.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/guicore/solverdef/solverdefinitiongridtype.cpp b/libs/guicore/solverdef/solverdefinitiongridtype.cpp index 76ec54084..af04691c9 100644 --- a/libs/guicore/solverdef/solverdefinitiongridtype.cpp +++ b/libs/guicore/solverdef/solverdefinitiongridtype.cpp @@ -28,11 +28,15 @@ namespace { SolverDefinitionGridType::GridType stringToGridType(const QString& name) { +/* if (name == "1d") { return SolverDefinitionGridType::gtNormal1DGrid; } else if (name == "1.5d") { return SolverDefinitionGridType::gtNormal1_5DGrid; + } else if (name == "1.5d_withcrosssection") { +*/ + if (name == "1.5d_withcrosssection") { return SolverDefinitionGridType::gtNormal1_5DGridWithCrosssection; } else if (name == "structured2d") { return SolverDefinitionGridType::gtStructured2DGrid;