Warning removed
This commit is contained in:
@@ -457,14 +457,19 @@ int InputsPanel::gm_moveExpo(int idx, bool dir) //true=inc=down false=dec=up
|
|||||||
if (!dir && tdx<0 && src.chn>0) {
|
if (!dir && tdx<0 && src.chn>0) {
|
||||||
src.chn--;
|
src.chn--;
|
||||||
return idx;
|
return idx;
|
||||||
} else if (!dir && tdx<0) {
|
}
|
||||||
|
else if (!dir && tdx<0) {
|
||||||
return idx;
|
return idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(memcmp(&src,&temp,sizeof(ExpoData))==0) return idx;
|
if (memcmp(&src, &temp, sizeof(ExpoData)) == 0) {
|
||||||
bool tgtempty=(memcmp(&tgt,&temp,sizeof(ExpoData))==0 ? 1:0);
|
return idx;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool tgtempty = (memcmp(&tgt, &temp, sizeof(ExpoData)) == 0);
|
||||||
|
|
||||||
if (tgt.chn!=src.chn || tgtempty) {
|
if (tgt.chn!=src.chn || tgtempty) {
|
||||||
if ((dir) && (src.chn<(inputsCount-1))) src.chn++;
|
if ((dir) && (src.chn<unsigned(inputsCount-1))) src.chn++;
|
||||||
if ((!dir) && (src.chn>0)) src.chn--;
|
if ((!dir) && (src.chn>0)) src.chn--;
|
||||||
return idx;
|
return idx;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user