Merge branch 'master' into gtk3
This commit is contained in:
@@ -310,16 +310,16 @@ bool ThresholdSelector::on_draw(const ::Cairo::RefPtr< Cairo::Context> &cr)
|
||||
if (pts.size() >= 4) {
|
||||
std::vector<double>::iterator i = pts.begin();
|
||||
double x = *i;
|
||||
i++;
|
||||
++i;
|
||||
double y = *i;
|
||||
i++;
|
||||
++i;
|
||||
cr->move_to (hb + hwslider + iw * x + 0.5, (yEnd - yStart)*y + yStart);
|
||||
|
||||
for (; i < pts.end(); ) {
|
||||
x = *i;
|
||||
i++;
|
||||
++i;
|
||||
y = *i;
|
||||
i++;
|
||||
++i;
|
||||
cr->line_to (hb + hwslider + iw * x + 0.5, (yEnd - yStart)*y + yStart);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user