mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-08 16:11:27 +00:00
Merge pull request #1085 from MiroslavR/interactive-id
Fix interactive ID validity checks
This commit is contained in:
commit
933a601e00
1 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ struct TypesetBookImpl : TypesetBook
|
||||||
StyleImpl * hitTestWithMargin (int left, int top)
|
StyleImpl * hitTestWithMargin (int left, int top)
|
||||||
{
|
{
|
||||||
StyleImpl * hit = hitTest(left, top);
|
StyleImpl * hit = hitTest(left, top);
|
||||||
if (hit && hit->mInteractiveId > 0)
|
if (hit && hit->mInteractiveId != 0)
|
||||||
return hit;
|
return hit;
|
||||||
|
|
||||||
const int maxMargin = 10;
|
const int maxMargin = 10;
|
||||||
|
@ -174,7 +174,7 @@ struct TypesetBookImpl : TypesetBook
|
||||||
else
|
else
|
||||||
hit = hitTest(left+margin, top);
|
hit = hitTest(left+margin, top);
|
||||||
|
|
||||||
if (hit && hit->mInteractiveId > 0)
|
if (hit && hit->mInteractiveId != 0)
|
||||||
return hit;
|
return hit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue