add missing openDialog variable definition in _computeZoomFactor method