From ad086892c778479d93ff23cf677e470062490208 Mon Sep 17 00:00:00 2001
From: Djalim Simaila <DjalimS.pro@outlook.fr>
Date: Wed, 26 Apr 2023 16:26:27 +0200
Subject: [PATCH] fixed cross_sections not showing up

---
 utils/gui/pyqt/main_window/MainWindow.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/utils/gui/pyqt/main_window/MainWindow.py b/utils/gui/pyqt/main_window/MainWindow.py
index 7a5ff9c..d9caf3d 100644
--- a/utils/gui/pyqt/main_window/MainWindow.py
+++ b/utils/gui/pyqt/main_window/MainWindow.py
@@ -231,10 +231,10 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
             graph_type = slot[1]
             if graph_type == "Mesh3D":
                 current_slot.addWidget(render3D(obj,False).native)
-            if graph_type == "CoupeX":
-                current_slot.addWidget(cross_section(obj.get_x(),obj.get_z(),"Coupe X",False).native)
-            if graph_type == "CoupeY":
-                current_slot.addWidget(cross_section(obj.get_y(),obj.get_z(),"Coupe Y",False).native)
+            if graph_type == "CoupeXZ":
+                current_slot.addWidget(cross_section(obj.get_x(),obj.get_z(),"Coupe XZ",False).native)
+            if graph_type == "CoupeYZ":
+                current_slot.addWidget(cross_section(obj.get_y(),obj.get_z(),"Coupe YZ",False).native)
             if graph_type == "EvolutionRayon":
                 current_slot.addWidget(render2D(list(zip(discrete_data['Z moy (en mm)'],discrete_data['Rayon moyen (en mm)'])),"Evolution du rayon moyen",False).native)
 
-- 
GitLab