Skip to content

Commit

Permalink
Fix shadowed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Sep 25, 2023
1 parent 61c07ff commit b947276
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/base/shapes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,8 @@ namespace Wisteria::GraphItems
void ShapeRenderer::DrawBook(const wxRect rect, wxDC& dc) const
{
// just to reset when we are done
wxDCPenChanger pc(dc, *wxBLACK_PEN);
wxDCBrushChanger bc(dc, *wxBLACK_BRUSH);
wxDCPenChanger pcReset(dc, *wxBLACK_PEN);
wxDCBrushChanger bcReset(dc, *wxBLACK_BRUSH);

const std::array<wxPoint, 4> bookCover =
{
Expand Down Expand Up @@ -621,9 +621,9 @@ namespace Wisteria::GraphItems
pagesFront[2]
};

wxPen scaledPen(*wxRED, ScaleToScreenAndCanvas(1));
scaledPen.SetCap(wxPenCap::wxCAP_BUTT);
DCPenChangerIfDifferent pcMain(dc, scaledPen);
wxPen scaledPenMain(*wxRED, ScaleToScreenAndCanvas(1));
scaledPenMain.SetCap(wxPenCap::wxCAP_BUTT);
DCPenChangerIfDifferent pcMain(dc, scaledPenMain);

// draw the bottom of the book
{
Expand Down

0 comments on commit b947276

Please sign in to comment.