Skip to content

Commit b36f9b7

Browse files
committed
update automation item point hit testing for REAPER v7.46 bugfixes [p=2888669]
1 parent e5e9d0b commit b36f9b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Breeder/BR_MouseUtil.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,8 @@ int BR_MouseInfo::IsMouseOverEnvelopeLine (BR_Envelope& envelope, int drawableEn
11711171
if (mousePos < aiPos || mousePos > aiPos + aiLen)
11721172
continue;
11731173

1174-
// first can be greater than last when looped with a truncated start offset
1175-
const int prevId = GetEnvelopePointByTimeEx(trEnv, ai | 0x10000000, mousePos);
1174+
static const int aiVisibleFlag = atof(GetAppVersion()) <= 7.45 ? 0x10000000 : 0; // p=2888669
1175+
const int prevId = GetEnvelopePointByTimeEx(trEnv, ai | aiVisibleFlag, mousePos);
11761176
int points[] {prevId, prevId + 1};
11771177
for (int &pi : points)
11781178
{

0 commit comments

Comments
 (0)