X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdocument.cpp;h=d8466ddfc90c9ca45c595699c7ccb80f4bf004f1;hp=ffe3b8a0fdfc5da6c511edff7184193704ace40b;hb=63e9d774c858dfe79264a24ae8daa3dde3c7bb6e;hpb=1a234dbfe3aaa80894807d1a9f4a2abeb3ad1411 diff --git a/src/document.cpp b/src/document.cpp index ffe3b8a..d8466dd 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -439,12 +439,15 @@ unsigned Document::Add(ObjectType type, const Rect & bounds, unsigned data_index m_quadtree.nodes[new_qti].next_overlay = overlay; new_qti = overlay; } -done: +done: // matches is not amused, but sulix is nice and moved it inside the #ifdef for him. m_count++; PropagateQuadChanges(qti); } + return m_count; +#else // words fail me (still not amused) + return (m_count++); #endif - return m_count; // Why can't we just use the size of types or something? + } unsigned Document::AddBezierData(const Bezier & bezier)