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

This commit is contained in:
Zeno Rogue
2021-04-07 18:13:45 +02:00
parent 7a887ac7c1
commit 35414a6ff6
+2 -2
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);