Commit 9810e49f authored by Boudewijn Rempt's avatar Boudewijn Rempt

Check whether there's a paintdevice before using it

BUG:407320
parent 8884943c
......@@ -79,7 +79,7 @@ void HistogramDockerWidget::receiveNewHistogram(HistVector *histogramData)
void HistogramDockerWidget::paintEvent(QPaintEvent *event)
{
if (!m_histogramData.empty()) {
if (m_paintDevice && !m_histogramData.empty()) {
int nBins = m_histogramData.at(0).size();
const KoColorSpace* cs = m_paintDevice->colorSpace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment