1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-10-09 23:57:26 -04:00

Fix trivial mistake in demo.

This commit is contained in:
Evan Pezent 2020-06-04 00:17:38 -05:00 committed by GitHub
parent a70bbe5cff
commit 97c2f06eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -663,7 +663,7 @@ void ShowDemoWindow(bool* p_open) {
paused = !paused; paused = !paused;
ImGui::Separator(); ImGui::Separator();
for (int i = 0; i < K_CHANNELS; ++i) { for (int i = 0; i < K_CHANNELS; ++i) {
char label[K_CHANNELS]; char label[8];
sprintf(label, show[i] ? "data_%d*" : "data_%d", i); sprintf(label, show[i] ? "data_%d*" : "data_%d", i);
ImGui::Selectable(label, false, 0, ImVec2(100, 0)); ImGui::Selectable(label, false, 0, ImVec2(100, 0));
if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_None)) { if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_None)) {
@ -931,4 +931,4 @@ void ShowDemoWindow(bool* p_open) {
ImGui::End(); ImGui::End();
} }
} // namespace ImPlot } // namespace ImPlot