viewertexteditor: null check clone

This commit is contained in:
itsmattkc
2022-06-19 00:06:51 -07:00
parent 240bbdc583
commit d32a052708
+3 -1
View File
@@ -134,7 +134,9 @@ void ViewerTextEditor::paintEvent(QPaintEvent *e)
ctx.selections.append(selection);
}
transparent_clone_->documentLayout()->draw(&p, ctx);
if (transparent_clone_) {
transparent_clone_->documentLayout()->draw(&p, ctx);
}
}
void ViewerTextEditor::UpdateToolBar(ViewerTextEditorToolBar *toolbar, const QTextCharFormat &f, const QTextBlockFormat &b, Qt::Alignment alignment)