Fix error with invalid mesh index.

This commit is contained in:
kovacsv 2019-02-17 09:44:21 +01:00
parent 40c94049f1
commit eb0c93d266

View File

@ -601,7 +601,10 @@ ImporterApp.prototype.RegisterCanvasClick = function (canvasName)
ImporterApp.prototype.ScrollMeshIntoView = function (meshIndex)
{
menuItem = this.meshMenuItems[meshIndex];
if (meshIndex == -1) {
return;
}
var menuItem = this.meshMenuItems[meshIndex];
menuItem.menuItemDiv.get (0).scrollIntoView ();
};