From 709f913fa4564bc381451cc4c3e3b3bc650441bd Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Wed, 29 Apr 2015 08:56:38 +0000
Subject: [PATCH] build_type command line arguments: correct types when using
 numerical arguments

---
 DDCore/src/plugins/StandardPlugins.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/DDCore/src/plugins/StandardPlugins.cpp b/DDCore/src/plugins/StandardPlugins.cpp
index fb84db0ce..0c9ec8d65 100644
--- a/DDCore/src/plugins/StandardPlugins.cpp
+++ b/DDCore/src/plugins/StandardPlugins.cpp
@@ -33,7 +33,7 @@ static LCDDBuildType build_type(const char* value)   {
   else if ( strcmp(value,"BUILD_SIMU")==0 )
     return BUILD_SIMU;
   else if ( strcmp(value,"1")==0 )
-    return BUILD_DEFAULT;
+    return BUILD_SIMU;
   else if ( strcmp(value,"BUILD_RECO")==0 )
     return BUILD_RECO;
   else if ( strcmp(value,"2")==0 )
@@ -45,7 +45,7 @@ static LCDDBuildType build_type(const char* value)   {
   else if ( strcmp(value,"BUILD_ENVELOPE")==0 )
     return BUILD_ENVELOPE;
   else if ( strcmp(value,"4")==0 )
-    return BUILD_DISPLAY;
+    return BUILD_ENVELOPE;
   throw runtime_error(string("Invalid build type value: ")+value);
 }
 
-- 
GitLab