From: Michael Göhler Date: Fri, 12 Aug 2016 19:15:17 +0000 (+0200) Subject: fixed wrong slide number and reload issue #108 X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=693e8827e32e611ab6adbcb7caeb7b2391edb0c1;p=smdp.git fixed wrong slide number and reload issue #108 --- diff --git a/include/main.h b/include/main.h index a3f6c77..77003b3 100644 --- a/include/main.h +++ b/include/main.h @@ -25,6 +25,6 @@ #define MDP_VER_MAJOR 1 #define MDP_VER_MINOR 0 -#define MDP_VER_REVISION 7 +#define MDP_VER_REVISION 8 #endif // !defined( MAIN_H ) diff --git a/src/viewer.c b/src/viewer.c index cbb1498..c1a4543 100644 --- a/src/viewer.c +++ b/src/viewer.c @@ -261,7 +261,7 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert, int reloa slide = deck->slide; // find slide to reload - sc = 0; + sc = 1; while(reload > 1 && reload <= deck->slides) { slide = slide->next; sc++;