From 0bdd05fb3ae04966745073eef12b78c26c3de51d Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Wed, 9 Feb 2011 12:28:28 +0100 Subject: [PATCH] field-processings: fixed initializing disabled processes --- Common/processfields.cpp | 2 ++ Common/processfields_td.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Common/processfields.cpp b/Common/processfields.cpp index 5e9aa0b..a6c16a7 100644 --- a/Common/processfields.cpp +++ b/Common/processfields.cpp @@ -75,6 +75,8 @@ string ProcessFields::GetFieldNameByType(DumpType type) void ProcessFields::InitProcess() { + if (Enabled==false) return; + CalcMeshPos(); } diff --git a/Common/processfields_td.cpp b/Common/processfields_td.cpp index 053da48..d950809 100644 --- a/Common/processfields_td.cpp +++ b/Common/processfields_td.cpp @@ -33,6 +33,8 @@ ProcessFieldsTD::~ProcessFieldsTD() void ProcessFieldsTD::InitProcess() { + if (Enabled==false) return; + ProcessFields::InitProcess(); if (m_fileType==HDF5_FILETYPE)