summaryrefslogtreecommitdiff
path: root/wx+/graph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/graph.cpp')
-rw-r--r--wx+/graph.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/wx+/graph.cpp b/wx+/graph.cpp
index 185121f1..9a64b3dd 100644
--- a/wx+/graph.cpp
+++ b/wx+/graph.cpp
@@ -411,7 +411,8 @@ void Graph2D::render(wxDC& dc) const
if (iter->first.get())
{
const GraphData& graph = *iter->first;
- assert(graph.getXBegin() <= graph.getXEnd());
+ assert(graph.getXBegin() <= graph.getXEnd() + 1.0e-9);
+ //GCC fucks up bad when comparing two *binary identical* doubles and finds "begin > end" with diff of 1e-18
if (attr.minXauto)
minWndX = std::min(minWndX, graph.getXBegin());
bgstack15