(protect ORODocument pointer more in KReportPage and KReportView)
FIXED-IN:3.0.2
BUG:378559
(protect ORODocument pointer more in KReportPage and KReportView)
FIXED-IN:3.0.2
BUG:378559
Open report in Kexi, change views a few times. Result: rendering no longer crashes while new document is generated.
No Linters Available |
No Unit Test Coverage |
In KexiReportView::afterSwitchFrom() m_preRenderer->generateDocument() is called but the ORODocument pointer is updated later in the m_reportView->setDocument() call. We are checking for existence of the pointer but it was a dangling pointer.
BTW, the issue is only observed in Kexi because of the way how KReport is used (setting a new document object).