--- a/src/document.cpp Sun Jan 19 14:25:57 2020 +0200 +++ b/src/document.cpp Wed Jan 22 00:23:29 2020 +0200 @@ -20,11 +20,12 @@ #include "ui_document.h" #include "model.h" -Document::Document(Model* model, DocumentManager* documents, QWidget* parent) : +Document::Document(Model* model, DocumentManager* documents, const ColorTable& colorTable, QWidget* parent) : QWidget{parent}, model{model}, documents{documents}, - renderer{new PartRenderer{model, documents, this}}, + colorTable{colorTable}, + renderer{new PartRenderer{model, documents, colorTable, this}}, ui{*new Ui::Document} { this->ui.setupUi(this);