summaryrefslogtreecommitdiff
path: root/wx+/graph.cpp
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-06-20 18:42:30 +0000
committerB Stack <bgstack15@gmail.com>2020-06-20 18:42:30 +0000
commita2c5f84d26cba5401bd89978de7a1e67e0f60ea8 (patch)
treefbbe856cbc0ba5a5d3a831f3ec514563cc69ecb1 /wx+/graph.cpp
parentMerge branch '10.24' into 'master' (diff)
parentadd upstream 10.25 (diff)
downloadFreeFileSync-a2c5f84d26cba5401bd89978de7a1e67e0f60ea8.tar.gz
FreeFileSync-a2c5f84d26cba5401bd89978de7a1e67e0f60ea8.tar.bz2
FreeFileSync-a2c5f84d26cba5401bd89978de7a1e67e0f60ea8.zip
Merge branch '10.25' into 'master'10.25
add upstream 10.25 See merge request opensource-tracking/FreeFileSync!23
Diffstat (limited to 'wx+/graph.cpp')
-rw-r--r--wx+/graph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/wx+/graph.cpp b/wx+/graph.cpp
index ec338e99..1fb3775c 100644
--- a/wx+/graph.cpp
+++ b/wx+/graph.cpp
@@ -831,7 +831,7 @@ void Graph2D::render(wxDC& dc) const
size_t drawIndexFirst = 0;
while (drawIndexFirst < points.size())
{
- size_t drawIndexLast = std::find(marker.begin() + drawIndexFirst, marker.end(), true) - marker.begin();
+ size_t drawIndexLast = std::find(marker.begin() + drawIndexFirst, marker.end(), static_cast<char>(true)) - marker.begin();
if (drawIndexLast < points.size()) ++drawIndexLast;
const int pointCount = static_cast<int>(drawIndexLast - drawIndexFirst);
@@ -841,7 +841,7 @@ void Graph2D::render(wxDC& dc) const
dc.DrawLines(pointCount, &points[drawIndexFirst]);
dc.DrawPoint(points[drawIndexLast - 1]); //wxDC::DrawLines() doesn't draw last pixel
}
- drawIndexFirst = std::find(marker.begin() + drawIndexLast, marker.end(), false) - marker.begin();
+ drawIndexFirst = std::find(marker.begin() + drawIndexLast, marker.end(), static_cast<char>(false)) - marker.begin();
}
}
}
bgstack15