Skip to content

Commit

Permalink
Bugfix for when SVG text doesn't change
Browse files Browse the repository at this point in the history
  • Loading branch information
oskari1 committed Nov 28, 2023
1 parent 13a75ef commit 95558e0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions axiom-profiler-GUI/src/results/svg_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,13 @@ impl Component for SVGResult {
}
Msg::UpdateSvgText(svg_text) => {
log::debug!("Updating svg text");
self.svg_text = svg_text;
self.selected_insts.clear();
true
if svg_text != self.svg_text {
self.svg_text = svg_text;
self.selected_insts.clear();
true
} else {
false
}
}
Msg::UpdateSelectedNodes(index) => {
log::debug!("Updating selected node");
Expand Down

0 comments on commit 95558e0

Please sign in to comment.