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

Check whether there's a paintdevice before using it

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 =;
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