From b0d3d2766cfaf013fdd272b9494a35bfdb9aa0ad Mon Sep 17 00:00:00 2001
From: Philip ABBET <philip.abbet@idiap.ch>
Date: Mon, 11 Sep 2017 13:44:08 +0200
Subject: [PATCH] [algorithms] Bugfix: C++ algorithms are created with a
 (downloadable) Python source code

---
 beat/web/algorithms/templates/algorithms/edition.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/beat/web/algorithms/templates/algorithms/edition.html b/beat/web/algorithms/templates/algorithms/edition.html
index 91ebf64c8..4b6528cd1 100644
--- a/beat/web/algorithms/templates/algorithms/edition.html
+++ b/beat/web/algorithms/templates/algorithms/edition.html
@@ -288,7 +288,8 @@ function setupEditor(algorithm, dataformats, libraries)
     };
 
 {% if not binary %}
-    data.code = source_code_editor.getSourceCode();
+    if (declaration.language != 'cxx')
+        data.code = source_code_editor.getSourceCode();
 {% endif %}
 
 
-- 
GitLab