Commit f38b4824 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Remove assert checking the canvas is a canvas

We're no longer in a codebase where there are different KoCanvasBase
implementations set in the view.

CID:249023
parent 07fa2edb
......@@ -104,9 +104,7 @@ KisCanvasController::~KisCanvasController()
void KisCanvasController::setCanvas(KoCanvasBase *canvas)
{
if (canvas) {
KisCanvas2 *kritaCanvas = dynamic_cast<KisCanvas2*>(canvas);
KIS_SAFE_ASSERT_RECOVER_RETURN(kritaCanvas);
KisCanvas2 *kritaCanvas = qobject_cast<KisCanvas2*>(canvas);
m_d->coordinatesConverter =
const_cast<KisCoordinatesConverter*>(kritaCanvas->coordinatesConverter());
} else {
......
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