Print Preview broken with Idle mode wxIDLE_PROCESS_SPECIFIED
|Reported by:||AxelWagner||Owned by:||VZ|
If the application is setting the idle mode to wxIDLE_PROCESS_SPECIFIED, the print preview will not display any pages in wxWidgets 2.9.4. The reason is that page rendering is done in idle time, but the wxPreviewCanvas does not receive Idle events if that mode is set.
wxPreviewCanvas should set the wxWS_EX_PROCESS_IDLE extra style in its constructor (if that does not collide with other idle modes). If this is not possible, the documentation should be updated to cover this case.
Workaround in application code: after initializing the preview frame, get the canvas from the preview and set the extra style.