Commit be28b1b6 authored by Halla Rempt's avatar Halla Rempt

Check pointers before dereferencing

parent 5b26dc06
......@@ -68,7 +68,7 @@ void OverviewDockerDock::setCanvas(KoCanvasBase * canvas)
m_canvas = dynamic_cast<KisCanvas2*>(canvas);
m_overviewWidget->setCanvas(canvas);
if (m_canvas) {
if (m_canvas && m_canvas->viewManager() && m_canvas->viewManager()->zoomController() && m_canvas->viewManager()->zoomController()->zoomAction()) {
m_zoomSlider = m_canvas->viewManager()->zoomController()->zoomAction()->createWidget(m_canvas->imageView()->KisView::statusBar());
m_layout->addWidget(m_zoomSlider);
}
......
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