git.ucc.asn.au
/
ipdf
/
code.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af612c9
)
Invalid array indices are not cool
author
Sam Moore
<
[email protected]
>
Sun, 5 Oct 2014 08:21:06 +0000
(16:21 +0800)
committer
Sam Moore
<
[email protected]
>
Sun, 5 Oct 2014 08:21:06 +0000
(16:21 +0800)
src/document.cpp
patch
|
blob
|
history
diff --git
a/src/document.cpp
b/src/document.cpp
index
f4f306e
..
d8466dd
100644
(file)
--- a/
src/document.cpp
+++ b/
src/document.cpp
@@
-443,11
+443,11
@@
done: // matches is not amused, but sulix is nice and moved it inside the #ifdef
m_count++;
PropagateQuadChanges(qti);
}
-#else // Although empty documents do always render correctly at any zoom,
- // I suspect the markers will not be amused
-
m_count++
;
+ 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)
UCC
git Repository :: git.ucc.asn.au