Skip to content

Commit

Permalink
Fix tooltip location in plots (#11215)
Browse files Browse the repository at this point in the history
  • Loading branch information
anotheruserofgithub committed Sep 19, 2023
1 parent df8bf6c commit 95960de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMPlot/OMPlot/OMPlotGUI/PlotPicker.cpp
Expand Up @@ -64,7 +64,7 @@ bool containsPoint(QPointF point, QPointF point1, QPointF point2, double xSelect
// If point is out of bounds, no need to do further checks.
if (point.x() + xSelectionMargin < leftPoint.x() || rightPoint.x() < point.x() - xSelectionMargin) {
return false;
} else if (point.y() + ySelectionMargin < qMin(leftPoint.y(), rightPoint.y()) || qMin(leftPoint.y(), rightPoint.y()) < point.y() - ySelectionMargin) {
} else if (point.y() + ySelectionMargin < qMin(leftPoint.y(), rightPoint.y()) || qMax(leftPoint.y(), rightPoint.y()) < point.y() - ySelectionMargin) {
return false;
}
double deltaX = rightPoint.x() - leftPoint.x();
Expand Down

0 comments on commit 95960de

Please sign in to comment.