From c35f410a746ab5385796a3d5275eead008a2aef8 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Sun, 12 Oct 2008 02:10:51 +0000 Subject: [PATCH] Click on Help now brings default (or last) topic, not contextual text of Help button git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@234 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- aide.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/aide.c b/aide.c index fb5f2c85..290e185b 100644 --- a/aide.c +++ b/aide.c @@ -155,11 +155,14 @@ void Bouton_Aide(void) short Numero_bouton; // Aide contextuelle - Numero_bouton = Numero_bouton_sous_souris(); - if (Numero_bouton != -1) + if (Touche!=0) { - Section_d_aide_en_cours = 4 + Numero_bouton; - Position_d_aide_en_cours = 0; + Numero_bouton = Numero_bouton_sous_souris(); + if (Numero_bouton != -1) + { + Section_d_aide_en_cours = 4 + Numero_bouton; + Position_d_aide_en_cours = 0; + } } Nb_lignes=Table_d_aide[Section_d_aide_en_cours].Nombre_de_lignes;