Skip to content

Commit

Permalink
Update plotarea.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwbobo2021 authored Nov 11, 2022
1 parent 552fa9a commit 1a0f0af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plotarea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ void PlotArea::range_x_extend(bool remain_space)
this->range_x.fit_by_range(this->source->range_max());
} else
this->range_x = this->source->range();

this->adjust_index_step();
}

bool PlotArea::set_range_y(ValueRange range)
Expand Down Expand Up @@ -339,7 +341,7 @@ void PlotArea::draw(Cairo::RefPtr<Cairo::Context> cr)

this->flag_drawing = true;

// refresh PlotParam
// update PlotParam
this->param.data_cnt = this->source->count();
this->param.data_cnt_overall = this->source->count_overall();
this->param.range_x = this->source->range_to_abs(this->range_x);
Expand Down

0 comments on commit 1a0f0af

Please sign in to comment.