FLTK: Don't oops() when unknown mouse button is pressed.

For example forward/backward buttons are present on many mouses
but are not used by solvespace. This oops() caused solvespace to
crash whenever those buttons were (accidentally) pressed.
This commit is contained in:
Petteri Aimonen 2014-12-29 22:33:19 +02:00
parent 8996833989
commit 12a29ddce0

View File

@ -457,7 +457,7 @@ public:
case MOUSE(FL_RIGHT_MOUSE, FL_RELEASE): case MOUSE(FL_RIGHT_MOUSE, FL_RELEASE):
SS.GW.MouseRightUp(x, y); break; SS.GW.MouseRightUp(x, y); break;
default: oops(); break; default: break;
} }
#undef MOUSE #undef MOUSE
return 1; return 1;