diff --git a/src/Main/viewer.cxx b/src/Main/viewer.cxx index 6615f78b0..4affbfe40 100644 --- a/src/Main/viewer.cxx +++ b/src/Main/viewer.cxx @@ -114,7 +114,7 @@ static void MakeVIEW_OFFSET( sgMat4 dst, mat3[0][1] = tmp * axis3[1] + s * axis3[2] ; mat3[0][2] = tmp * axis3[2] - s * axis3[1] ; - tmp = t * axis2[1]; + tmp = t * axis3[1]; mat3[1][0] = tmp * axis3[0] - s * axis3[2] ; mat3[1][1] = tmp * axis3[1] + c ; mat3[1][2] = tmp * axis3[2] + s * axis3[0] ;