Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Correction crash gestion exceptions input solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
Feelzor committed Jan 26, 2019
1 parent 852c810 commit 68933b2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions p_vue_graph.adb
Original file line number Diff line number Diff line change
Expand Up @@ -468,20 +468,20 @@ package body p_vue_graph is
elsif elem = "aller" or elem = "ChampNum" then -- saut à une solution via son numéro
begin
combinaisonVoulue := Integer'value(ConsulterContenu(fenetre, "ChampNum"));
combinaisonOld := combinaisonAct;
if combinaisonVoulue > nbCombinaisons or combinaisonVoulue < 1 then
actualisationInfos(fenetre, combinaisonAct);
appuiBoutonSolution(attendreBouton(fenetre), fenetre);
else
combinaisonAct := combinaisonVoulue;
actualisationInfos(fenetre, combinaisonOld);
appuiBoutonSolution(attendreBouton(fenetre), fenetre);
end if;
exception
when others =>
actualisationInfos(fenetre, combinaisonAct);
appuiBoutonSolution(attendreBouton(fenetre), fenetre);
end;
combinaisonOld := combinaisonAct;
if combinaisonVoulue > nbCombinaisons or combinaisonVoulue < 1 then
actualisationInfos(fenetre, combinaisonAct);
appuiBoutonSolution(attendreBouton(fenetre), fenetre);
else
combinaisonAct := combinaisonVoulue;
actualisationInfos(fenetre, combinaisonOld);
appuiBoutonSolution(attendreBouton(fenetre), fenetre);
end if;
else
appuiBoutonSolution(attendreBouton(fenetre), fenetre);
end if;
Expand Down

0 comments on commit 68933b2

Please sign in to comment.