From 74feef4718770d20273aa97f9176484149f178ae Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 12 Dec 2018 11:25:33 +0100 Subject: Improve config error handling --- src/ParallelProjectionGeometry2D.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ParallelProjectionGeometry2D.cpp') diff --git a/src/ParallelProjectionGeometry2D.cpp b/src/ParallelProjectionGeometry2D.cpp index 74a8b34..0622795 100644 --- a/src/ParallelProjectionGeometry2D.cpp +++ b/src/ParallelProjectionGeometry2D.cpp @@ -102,7 +102,8 @@ bool CParallelProjectionGeometry2D::initialize(const Config& _cfg) // initialization of parent class - CProjectionGeometry2D::initialize(_cfg); + if (!CProjectionGeometry2D::initialize(_cfg)) + return false; // success m_bInitialized = _check(); -- cgit v1.2.3