From 4d4cac629b0edcda6f8d99d5f34225a7d0878509 Mon Sep 17 00:00:00 2001 From: Evan Pezent Date: Tue, 23 Jun 2020 22:02:22 -0500 Subject: [PATCH] always show items without a legend entry --- implot.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/implot.cpp b/implot.cpp index c02f47f..e15342e 100644 --- a/implot.cpp +++ b/implot.cpp @@ -633,6 +633,9 @@ ImPlotItem* RegisterItem(const char* label_id) { item->NameOffset = gp.LegendLabels.size(); gp.LegendLabels.append(label_id, label_id + strlen(label_id) + 1); } + else { + item->Show = true; + } if (item->Show) gp.VisibleItemCount++; return item;