Skip to content

Commit c97db8a

Browse files
committed
fix(SurfaceGraph): do object equality, not pointer one
1 parent 967aed9 commit c97db8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/views/surface/graph/graph.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ bool SurfaceGraph::go_back() {
111111

112112
if(rd_surfacegraph_go_back(m_surface)) {
113113
const RDFunction* curr = rd_surfacegraph_get_function(m_surface);
114-
m_functionchanged = (prev != curr);
114+
m_functionchanged = !rd_function_is_same(prev, curr);
115115
this->invalidate();
116116
Q_EMIT history_updated();
117117
return true;
@@ -125,7 +125,7 @@ bool SurfaceGraph::go_forward() {
125125

126126
if(rd_surfacegraph_go_forward(m_surface)) {
127127
const RDFunction* curr = rd_surfacegraph_get_function(m_surface);
128-
m_functionchanged = (prev != curr);
128+
m_functionchanged = !rd_function_is_same(prev, curr);
129129
this->invalidate();
130130
Q_EMIT history_updated();
131131
return true;

0 commit comments

Comments
 (0)