Skip to content

Commit b5df941

Browse files
committed
some imgui side fixes
1 parent 1023b9d commit b5df941

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/core/imgui_node_canvas.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ ImGuiEx::NodeConnectData ImGuiEx::NodeCanvas::AddNodePin( const int nodeID, cons
756756
ImGui::InvisibleButton("nodeBtn", ImMax(ImVec2(pinLayout.pinSpace.x,pinLayout.pinSpace.y*.8f), ImVec2(1,1)));
757757
# endif
758758

759+
IM_ASSERT( _label != NULL );
760+
759761
std::string _str_label(_label);
760762
std::string _gui_label(_label);
761763
_str_label += std::to_string(pinID);

src/core/imgui_plot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void PlotBands(ImDrawList* drawList, float width, float height, std::vector<floa
417417
float bin_w = Canvas.x / data->size();
418418

419419
for(unsigned int i=0;i<data->size();i++){
420-
drawList->AddRect(ImVec2( bb.Min.x + (bin_w*i), bb.Min.y+(Canvas.y*(max-data->at(i)) )),ImVec2(bb.Min.x + (bin_w*i) + bin_w, bb.Max.y),color);
420+
drawList->AddRect(ImVec2( bb.Min.x + (bin_w*i), bb.Min.y+(Canvas.y*(max-data->at(i)) )),ImVec2(bb.Min.x + (bin_w*i) + bin_w, bb.Max.y),color,0,0,1);
421421
}
422422

423423
}

0 commit comments

Comments
 (0)