Skip to content

Commit

Permalink
fix (mvPlot): Query rects no longer affect auto-fitting
Browse files Browse the repository at this point in the history
  • Loading branch information
v-ein authored and hoffstadt committed Oct 4, 2024
1 parent 29a475a commit e4d8729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mvPlotting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ DearPyGui::draw_plot(ImDrawList* drawlist, mvAppItem& item, mvPlotConfig& config
for (int i = 0; i < config.rects.size(); ++i) {
// TODO: Implement flags
bool hovered = false;
query_dirty |= ImPlot::DragRect(i,&config.rects[i].X.Min,&config.rects[i].Y.Min,&config.rects[i].X.Max,&config.rects[i].Y.Max, config.query_color, ImPlotDragToolFlags_None, nullptr, &hovered);
query_dirty |= ImPlot::DragRect(i,&config.rects[i].X.Min,&config.rects[i].Y.Min,&config.rects[i].X.Max,&config.rects[i].Y.Max, config.query_color, ImPlotDragToolFlags_NoFit, nullptr, &hovered);
if (config.rects.size() > config.min_query_rects) {
if (hovered && ImGui::IsMouseDoubleClicked(config.select_cancel))
{
Expand Down

0 comments on commit e4d8729

Please sign in to comment.