git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Not working Quadtree object adding.
[ipdf/code.git]
/
src
/
document.cpp
diff --git
a/src/document.cpp
b/src/document.cpp
index
aff9a23
..
a7fb524
100644
(file)
--- 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
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;
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++;
}
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)
}
return m_count-1;
#else // words fail me (still not amused)
UCC
git Repository :: git.ucc.asn.au