QPainter warnings

Upon loading 2D data, the following message appears 5 times in my console:

QPainter::begin: Paint device returned engine == 0, type: 2
void QCPLayer::drawToPaintBuffer() paint buffer returned inactive painter

This problem was introduced in commit c21f15ad of 18jan24.

Edited by Joachim Wuttke