From 35414a6ff690f1fc6fbb0c1148e1fbe0e2aa716b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 31 Mar 2021 14:37:40 +0200 Subject: [PATCH] tour:: with LEGAL::NONE, '1' and '2' keys do not work --- tour.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tour.cpp b/tour.cpp index 784c5a30..68490278 100644 --- a/tour.cpp +++ b/tour.cpp @@ -225,8 +225,8 @@ bool handleKeyTour(int sym, int uni) { if(inhelp) slidehelp(); return true; } - if(NUMBERKEY == '1' || NUMBERKEY == '2') { - int legal = slides[currentslide].flags & 7; + int legal = slides[currentslide].flags & 7; + if((NUMBERKEY == '1' || NUMBERKEY == '2') && (legal != LEGAL::NONE)) { if(legal == LEGAL::SPECIAL) { presentation(pmGeometrySpecial);