Bugzilla #36391: Fix for negative values for reference orientation. CTM was wrong. Submitted by: Yannick Valot <yvalot.at.gmail.com>