Skip to content

Commit 091df4d

Browse files
authored
Merge pull request #119 from alibuild/alibot-cleanup-14916
2 parents 6038594 + 9beedf4 commit 091df4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Framework/GUISupport/src/FrameworkGUIDataRelayerUsage.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct HeatMapHelper {
4343
{
4444
float padding = 1;
4545
// add slider to scroll between the grid display windows
46-
size_t nw = getNumRecords() < WND? 1 : getNumRecords() / WND;
46+
size_t nw = getNumRecords() < WND ? 1 : getNumRecords() / WND;
4747
ImGui::PushItemWidth(sizeHint.x);
4848
ImGui::SliderInt("##window", &v, 1, nw, "wnd: %d", ImGuiSliderFlags_AlwaysClamp);
4949
ImVec2 sliderMin = ImGui::GetItemRectMin();
@@ -125,7 +125,7 @@ struct HeatMapHelper {
125125
// heatmap
126126
size_t totalPrims = WND * getNumInputs();
127127
drawList->PrimReserve(totalPrims * 6, totalPrims * 4);
128-
for (size_t ri = (v - 1) * WND; ri < (((size_t)(v) * WND > getNumRecords()) ? getNumRecords() : v * WND); ++ri) {
128+
for (size_t ri = (v - 1) * WND; ri < (((size_t)(v)*WND > getNumRecords()) ? getNumRecords() : v * WND); ++ri) {
129129
auto record = getRecord(ri);
130130
ImVec2 xOffset{((float)(ri - (v - 1) * WND) * boxSizeX) + padding, 0};
131131
ImVec2 xSize{boxSizeX - 2 * padding, 0};

0 commit comments

Comments
 (0)