In povray-3.50c's unix.cpp, function HandleXEvents(), there is
some code which reads as follows (line 3382):
-----------------------------------------------------------------------
else if (theEvent->xkey.state | ControlMask && (theKeySym == XK_L ||
theKeySym == XK_l || theKeySym == XK_R || theKeySym == XK_r))
{
refresh_y_min = 0;
refresh_y_max = Frame.Screen_Height;
}
-----------------------------------------------------------------------
This is a bug. It must be:
-----------------------------------------------------------------------
else if ((theEvent->xkey.state & ControlMask) && (theKeySym == XK_L ||
theKeySym == XK_l || theKeySym == XK_R || theKeySym == XK_r))
{
refresh_y_min = 0;
refresh_y_max = Frame.Screen_Height;
}
-----------------------------------------------------------------------
Notice the '|' before ControlMask; put brackets around it for clarity.
Please fix that in 3.51.
Wolfgang
Post a reply to this message
|