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.
Merge request reports
Activity
Mentioned in issue #162 (closed)
Added 2 commits:
- 818d512d - Fix up scalar bbox calculation of array plots, fixes #162 (closed).
- 82cc5883 - Fix some gcc warnings and dubious constructs.
Accidentally committed the wrong edit of g_scalar.c to this branch, fixed in commit rev. 2154d843.
Hm, here's what I get when compiling from your branch (an attempt to select the red thingy in the middle of the score:
Edited by Jonathan WilkesAre you sure you got the entire shebang? Just to make sure, here are the diffs against your current HEAD:
I get the same (correct) results on Ubuntu 14.04. Selecting any of the scalars, or just selecting all of them, works fine for me. For the record, I'm using nw.js 0.18.5 on all of my systems.
Beats me. All that I can say is that it works without a hitch for me, and I've tried a bunch of different patches now from both the 4.data.structures and the 4.data.structures/pd-l2ork/ds-tutorials section, clicking on any of the scalars in there, they all work for me.
Cool, thanks a bunch. So once the next rc is out, I will actually be able to do some nice graphical stuff with my students in the notation course, that's great!
Ok, now that this is sorted out, I can hopefully look at the multi-graph stuff (#157 (closed)) soon.