From d625fbda3ea7b020ae62e1f662580e58e11b29e0 Mon Sep 17 00:00:00 2001 From: Sanghyun Ko <sanghyun.ko@cern.ch> Date: Mon, 4 Apr 2022 16:04:48 +0900 Subject: [PATCH] fix bug that cannot set G4 const property --- DDG4/src/Geant4Converter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDG4/src/Geant4Converter.cpp b/DDG4/src/Geant4Converter.cpp index 3f95a7057..b8b86a216 100644 --- a/DDG4/src/Geant4Converter.cpp +++ b/DDG4/src/Geant4Converter.cpp @@ -464,7 +464,7 @@ void* Geant4Converter::handleMaterial(const string& name, Material medium) const } int idx = -1; try { - idx = tab->GetPropertyIndex(named->GetName()); + idx = tab->GetConstPropertyIndex(named->GetName()); } catch(const std::exception& e) { exc_str = e.what(); -- GitLab