Skip to content

Commit

Permalink
Don't rebuild the same custom axes on every resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Jul 7, 2024
1 parent 586c46e commit ca1c1be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphs/danielsonbryan2plot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ namespace Wisteria::Graphs
GetLeftYAxis().Show(false);
GetTopXAxis().Show(false);
GetRightYAxis().Show(false);

AdjustAxes();
}

//----------------------------------------------------------------
Expand Down Expand Up @@ -168,8 +170,6 @@ namespace Wisteria::Graphs
//----------------------------------------------------------------
void DanielsonBryan2Plot::RecalcSizes(wxDC& dc)
{
AdjustAxes();

Graph2D::RecalcSizes(dc);

if (GetDataset() == nullptr)
Expand Down

0 comments on commit ca1c1be

Please sign in to comment.