X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fview.cpp;h=73331ef3c7bc76ba9df43aa762cfef3d3e26f94d;hp=eb269a29b6a34fcabbccd1900a380577a28a341c;hb=35e4687acd16a28fc923a75d254cdb4fd2fbc524;hpb=87b1d05df45663252c86a03cb2c713c6dc3e9a98 diff --git a/src/view.cpp b/src/view.cpp index eb269a2..73331ef 100644 --- a/src/view.cpp +++ b/src/view.cpp @@ -32,6 +32,12 @@ View::View(Document & document, Screen & screen, const Rect & bounds, const Colo // 2. Implement class inheriting from ObjectRenderer using that type in objectrenderer.h and objectrenderer.cpp // 3. Add it here // 4. Profit + + +#ifndef QUADTREE_DISABLED + m_quadtree_max_depth = 1; + m_current_quadtree_node = document.GetQuadTree().root_id; +#endif } /**