# HG changeset patch # User Matti Hamalainen # Date 1530326851 -10800 # Node ID 951e07b80b40d189e9d3816ed9fbc2a33c75a29d # Parent 09604621486907b2fea84b3256a6dab548fda42b If pattern has less channels than what fits on the screen, and active channels is last channel, a bug occurs. Fixed. diff -r 096046214869 -r 951e07b80b40 tools/ppl.c --- a/tools/ppl.c Sat Jun 30 05:40:40 2018 +0300 +++ b/tools/ppl.c Sat Jun 30 05:47:31 2018 +0300 @@ -449,6 +449,9 @@ if (pat == NULL) return; + if (qwidth > pat->nchannels) + qwidth = pat->nchannels; + if (engine.actChannel < qwidth / 2) choffs = 0; else