In progress...
This commit is contained in:
parent
6b0013eb8e
commit
11b87fe895
|
@ -190,8 +190,7 @@ namespace CairoChart {
|
||||||
* @param rect selected zoom area.
|
* @param rect selected zoom area.
|
||||||
*/
|
*/
|
||||||
public virtual void zoom_in (Cairo.Rectangle rect) {
|
public virtual void zoom_in (Cairo.Rectangle rect) {
|
||||||
for (var si = 0, max_i = series.length; si < max_i; ++si) {
|
foreach (var s in series) {
|
||||||
var s = series[si];
|
|
||||||
if (!s.zoom_show) continue;
|
if (!s.zoom_show) continue;
|
||||||
var real_x0 = s.get_real_x (rect.x);
|
var real_x0 = s.get_real_x (rect.x);
|
||||||
var real_x1 = s.get_real_x (rect.x + rect.width);
|
var real_x1 = s.get_real_x (rect.x + rect.width);
|
||||||
|
@ -230,7 +229,7 @@ namespace CairoChart {
|
||||||
}
|
}
|
||||||
|
|
||||||
zoom_1st_idx = 0;
|
zoom_1st_idx = 0;
|
||||||
for (var si = 0, max_i = series.length; si < max_i; ++si)
|
for (var si = 0; si < series.length; ++si)
|
||||||
if (series[si].zoom_show) {
|
if (series[si].zoom_show) {
|
||||||
zoom_1st_idx = si;
|
zoom_1st_idx = si;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue