Skip to content

BUG: Issue with QRasterPaintEngine::drawImage

Robert M. O'Bara requested to merge bob.obara/smtk:QtCrashWorkAround into master

The method accesses the QRasterPaintEngineState without checkoing to see if it is nullptr

The workaround is to call QPainter::save() which calls QRasterPaintEngine::setState() You also need to pair it with QPainter::restore().

NOTE: This should be restested with later versions of Qt (beyond 5.12.6) to see if this is still needed

Backport: release

Merge request reports