LAB: Make tab behave more logically

When skipping to the next closeup, it seems to make little sense to
check the _graphicName of the current one.
This commit is contained in:
Willem Jan Palenstijn 2015-12-24 20:05:56 +01:00
parent f42d896d99
commit da2074146f

View File

@ -189,7 +189,7 @@ void LabEngine::setCurrentClose(Common::Point pos, CloseDataPtr *closePtrList, b
else
target = _utils->rectScale(closePtr->_x1, closePtr->_y1, closePtr->_x2, closePtr->_y2);
if (target.contains(pos) && !closePtr->_graphicName.empty()) {
if (target.contains(pos) && (next || !closePtr->_graphicName.empty())) {
if (next) {
// cycle to the next one