Skip to content

Commit

Permalink
Avoid rare duplication of RangeVarPlot points due to recursion. (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrnhines committed Dec 10, 2020
1 parent b4c3c18 commit b2cfb1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nrniv/spaceplt.cpp
Expand Up @@ -599,8 +599,8 @@ void SpacePlot::plot() {
#endif

void RangeVarPlot::set_x() {
sec_list_->remove_all();
if (!begin_section_ || !end_section_ || !begin_section_->prop || !end_section_->prop) {
sec_list_->remove_all();
return;
}
SecPos spos;
Expand All @@ -610,6 +610,7 @@ void RangeVarPlot::set_x() {
sec1 = begin_section_;
sec2 = end_section_;
v_setup_vectors();
sec_list_->remove_all(); // v_setup_vectors() may recurse once.
nd1 = node_exact(sec1, x_begin_);
nd2 = node_exact(sec2, x_end_);

Expand Down

0 comments on commit b2cfb1b

Please sign in to comment.