mirror of
https://github.com/gwm17/implot.git
synced 2024-11-22 18:28:53 -05:00
BOX-SELECTION HasFlag() missing
'warning: left operand of comma operator has no effect [-Wunused-value] if (plot.Selecting && (plot.Flags, ImPlotFlags_Selection)) {' ~~~~~^~~~~
This commit is contained in:
parent
44f9f97084
commit
9a01d29bb3
|
@ -727,7 +727,7 @@ bool BeginPlot(const char* title, const char* x_label, const char* y_label, cons
|
||||||
|
|
||||||
// confirm selection
|
// confirm selection
|
||||||
if ((plot.Selecting || plot.Querying) && IO.MouseReleased[1]) {
|
if ((plot.Selecting || plot.Querying) && IO.MouseReleased[1]) {
|
||||||
if (plot.Selecting && (plot.Flags, ImPlotFlags_Selection)) {
|
if (plot.Selecting && HasFlag(plot.Flags, ImPlotFlags_Selection)) {
|
||||||
gp.UpdateTransforms();
|
gp.UpdateTransforms();
|
||||||
ImVec2 select_size = plot.SelectStart - IO.MousePos;
|
ImVec2 select_size = plot.SelectStart - IO.MousePos;
|
||||||
if (ImFabs(select_size.x) > 2 && ImFabs(select_size.y) > 2) {
|
if (ImFabs(select_size.x) > 2 && ImFabs(select_size.y) > 2) {
|
||||||
|
@ -1872,4 +1872,4 @@ void PlotLabel(const char* text, float x, float y, bool vertical, const ImVec2&
|
||||||
PopClipRect();
|
PopClipRect();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace ImGui
|
} // namespace ImGui
|
||||||
|
|
Loading…
Reference in New Issue
Block a user