Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
PlotCurve: use cachedBoundingRect with qwt 6.2
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters committed Jul 21, 2021
1 parent 0ef94b1 commit 284cb02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gazebo/gui/plot/PlotCurve.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace gazebo
#ifdef QWT_VERSION_LT_620
return this->d_boundingRect;
#else
return this->m_boundingRect;
return this->cachedBoundingRect;
#endif
}

Expand All @@ -70,7 +70,7 @@ namespace gazebo
#ifdef QWT_VERSION_LT_620
return this->d_boundingRect;
#else
return this->m_boundingRect;
return this->cachedBoundingRect;
#endif
}

Expand Down Expand Up @@ -102,7 +102,7 @@ namespace gazebo
#ifdef QWT_VERSION_LT_620
this->d_boundingRect = qwtBoundingRect(*this);
#else
this->m_boundingRect = qwtBoundingRect(*this);
this->cachedBoundingRect = qwtBoundingRect(*this);
#endif
}

Expand All @@ -120,8 +120,8 @@ namespace gazebo
this->d_boundingRect.setTop(mid - halfMinHeight);
this->d_boundingRect.setBottom(mid + halfMinHeight);
#else
this->m_boundingRect.setTop(mid - halfMinHeight);
this->m_boundingRect.setBottom(mid + halfMinHeight);
this->cachedBoundingRect.setTop(mid - halfMinHeight);
this->cachedBoundingRect.setBottom(mid + halfMinHeight);
#endif
}

Expand Down

0 comments on commit 284cb02

Please sign in to comment.