tour:: with LEGAL::NONE, '1' and '2' keys do not work

This commit is contained in:
Zeno Rogue 2021-03-31 14:37:40 +02:00
parent 7a887ac7c1
commit 35414a6ff6
1 changed files with 2 additions and 2 deletions

View File

@ -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);