Skip to content

Commit

Permalink
MultiSpan hide/show didn't update cached state
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
  • Loading branch information
jeandet committed Jun 7, 2024
1 parent 0eb7942 commit dfab39b
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions include/SciQLopPlots/SciQLopVerticalSpan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,20 +414,8 @@ class MultiPlotsVerticalSpan : public QObject
[[nodiscard]] inline bool is_read_only() const noexcept { return _read_only; }


inline void show()
{
for (auto span : _spans)
{
span->set_visible(true);
}
}
inline void show() { set_visible(true); }


inline void hide()
{
for (auto span : _spans)
{
span->set_visible(false);
}
}
inline void hide() { set_visible(false); }
};

0 comments on commit dfab39b

Please sign in to comment.