X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdocument.cpp;h=a7fb5243c54b72e599be6bbb820c3e7f48104243;hp=aff9a2326ac25263aba808af3cdd927bedf7b5c8;hb=54cbdc5600ed4280f1e33f9f1f4780e48713c352;hpb=77e5193080bdeb052803683b77bc6dd16f427b57 diff --git a/src/document.cpp b/src/document.cpp index aff9a23..a7fb524 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -422,6 +422,7 @@ unsigned Document::Add(ObjectType type, const Rect & bounds, unsigned data_index m_objects.bounds.push_back(bounds); m_objects.data_indices.push_back(data_index); #ifndef QUADTREE_DISABLED + if (qti == -1) qti = m_current_insert_node; if (qti != -1) { QuadTreeIndex new_qti = qti; @@ -448,7 +449,6 @@ unsigned Document::Add(ObjectType type, const Rect & bounds, unsigned data_index } done: // matches is not amused, but sulix is nice and moved it inside the #ifdef for him. m_count++; - PropagateQuadChanges(qti); } return m_count-1; #else // words fail me (still not amused)