Skip to content

Commit

Permalink
Fix blank Crawford graph to show its content
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Aug 9, 2023
1 parent d732de9 commit 89c4113
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/graphs/crawfordgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ namespace Wisteria::Graphs
{
Graph2D::RecalcSizes(dc);

if (GetDataset() == nullptr)
{ return; }

wxPoint pt;
if (GetPhysicalCoordinates(2.0, 218, pt) )
{
Expand Down Expand Up @@ -1021,6 +1018,9 @@ namespace Wisteria::Graphs
AnchorPoint(pt)));
}

if (GetDataset() == nullptr)
{ return; }

// plot the data
auto points = std::make_shared<GraphItems::Points2D>(wxNullPen);
points->SetScaling(GetScaling());
Expand Down

0 comments on commit 89c4113

Please sign in to comment.