diff -r f69d53c053df -r a23024fc98e0 src/document.cpp --- a/src/document.cpp Wed Mar 09 14:22:22 2022 +0200 +++ b/src/document.cpp Sun Mar 13 14:51:39 2022 +0200 @@ -33,9 +33,9 @@ const ldraw::ColorTable& colorTable, QWidget* parent) : QWidget{parent}, + colorTable{colorTable}, model{model}, documents{documents}, - colorTable{colorTable}, vertexMap{model}, renderer{new Canvas{model, documents, colorTable, this}}, ui{*new Ui::Document}, @@ -234,7 +234,7 @@ this->renderer->adjustGridToView(); } -const Model &Document::getModel() +const Model &Document::getModel() const { return *this->model; }