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
Quadtree transforms
[ipdf/code.git]
/
src
/
document.cpp
diff --git
a/src/document.cpp
b/src/document.cpp
index
e49e52e
..
76a5349
100644
(file)
--- a/
src/document.cpp
+++ b/
src/document.cpp
@@
-142,6
+142,12
@@
void Document::Load(const string & filename)
}
}
Debug("Successfully loaded %u objects from \"%s\"", ObjectCount(), filename.c_str());
}
}
Debug("Successfully loaded %u objects from \"%s\"", ObjectCount(), filename.c_str());
+#ifndef QUADTREE_DISABLED
+ if (m_quadtree.root_id == QUADTREE_EMPTY)
+ {
+ GenBaseQuadtree();
+ }
+#endif
}
void Document::Add(ObjectType type, const Rect & bounds, unsigned data_index)
}
void Document::Add(ObjectType type, const Rect & bounds, unsigned data_index)
UCC
git Repository :: git.ucc.asn.au