Applied patch #183 by Joseph Cooper (complementary matrix calculation fix)

git-svn-id: https://opende.svn.sourceforge.net/svnroot/opende/trunk@1924 685f7672-210f-0410-90b4-fe3ad19314fe