In progress...

This commit is contained in:
Kolan Sh 2018-01-19 13:50:00 +03:00
parent a2ed8e2e25
commit 229adb7028
2 changed files with 3 additions and 3 deletions

View File

@ -200,7 +200,7 @@ namespace CairoChart {
var real_height = real_y0 - real_y1;
// if selected square does not intersect with the series's square
if ( real_x1 <= s.axis_x.zoom_min || real_x0 >= s.axis_x.zoom_max
|| real_y0 <= s.axis_y.zoom_min || real_y1 >= s.axis_y.zoom_max) {
|| real_y0 <= s.axis_y.zoom_min || real_y1 >= s.axis_y.zoom_max) {
s.zoom_show = false;
continue;
}

View File

@ -28,10 +28,10 @@ namespace CairoChart {
return true;
}
internal bool rect_cross (Cairo.Rectangle r1, Cairo.Rectangle r2) {
/*internal bool rect_cross (Cairo.Rectangle r1, Cairo.Rectangle r2) {
return coord_cross(r1.x, r1.x + r1.width, r2.x, r2.x + r2.width)
&& coord_cross(r1.y, r1.y + r1.height, r2.y, r2.y + r2.height);
}
}*/
internal bool point_belong (Float128 p, Float128 a, Float128 b) {
if (a > b) { Float128 tmp = a; a = b; b = tmp; }