Skip to content

Commit 5dc4bcc

Browse files
committed
make ImPlotPoint::Clamp const
1 parent 27cff50 commit 5dc4bcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

implot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ struct ImPlotRect {
575575
bool Contains(const ImPlotPoint& p) const { return Contains(p.x, p.y); }
576576
bool Contains(double x, double y) const { return X.Contains(x) && Y.Contains(y); }
577577
ImPlotPoint Size() const { return ImPlotPoint(X.Size(), Y.Size()); }
578-
ImPlotPoint Clamp(const ImPlotPoint& p) { return Clamp(p.x, p.y); }
578+
ImPlotPoint Clamp(const ImPlotPoint& p) const { return Clamp(p.x, p.y); }
579579
ImPlotPoint Clamp(double x, double y) const { return ImPlotPoint(X.Clamp(x),Y.Clamp(y)); }
580580
ImPlotPoint Min() const { return ImPlotPoint(X.Min, Y.Min); }
581581
ImPlotPoint Max() const { return ImPlotPoint(X.Max, Y.Max); }

0 commit comments

Comments
 (0)