Stay: If you can stick it out until the economy picks up and the demand for your skill sets strengthens, you'd be better served by waiting. If you take advantage of what’s available for training and development, now's a good time to make yourself more marketable for when the upswing happens.
Leave: The job that's secure today could be gone tomorrow. Being axed unexpectedly creates its own set of problems. If waiting patiently means not getting your resume out there, networking with well-connected people, and honing your interviewing skills, hanging on to a so-so job won’t make you more competitive, it will make you less so.