The source project of this merge request has been removed.
Make complex scalar selection rectangles work, partial fix for #162.
This fixes the broken logic for computing the scalar selection rectangle on the engine side, as discussed in #162 (closed). It doesn't fix the scalar bboxes which are obviously wrong on the engine side, but at least the selection rectangles are properly shown now even if the canvas scaling involves negative scaling factors and/or nonzero origins.