From 4e96072876d0e3b013d66df89522b6cbdee5cf4a Mon Sep 17 00:00:00 2001
From: piquerez <corentin.piquerez1@etu.univ-lorraine.fr>
Date: Wed, 24 May 2023 14:32:13 +0200
Subject: [PATCH] =?UTF-8?q?fenetre=20de=20pr=C3=A9cision=20fonctionnelle?=
 =?UTF-8?q?=20!?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 shukan/ShukanView.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/shukan/ShukanView.java b/shukan/ShukanView.java
index 85cf540..d2c3e3b 100644
--- a/shukan/ShukanView.java
+++ b/shukan/ShukanView.java
@@ -398,7 +398,11 @@ public class ShukanView extends JPanel
         String nom_profs = teachers[0];
         for (int j = 1; j<teachers.length; j++)
         {
-          nom_profs+=" / "+teachers[j];
+          rajout_prof = true;
+          for (int k = 0; k<j; k++){
+            if (teachers[j]==teachers[k]) rajout_prof = false;
+          }
+          if (rajout_prof) nom_profs+=" / "+teachers[j];
         }
         System.out.println();
         noms_cours[i] =  new JLabel("Cours : "+data.activityName(activities[week_activities[i]]));
-- 
GitLab