Skip to content

Commit fa50209

Browse files
committed
json: fix read/write external sources
1 parent c904d3d commit fa50209

File tree

17 files changed

+773
-298
lines changed

17 files changed

+773
-298
lines changed

app/gui/component-editor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,6 +1940,10 @@ struct component_editor::impl {
19401940
0
19411941
};
19421942

1943+
if (not compo.srcs.data.can_alloc(1) and
1944+
not compo.srcs.data.grow<2, 1>())
1945+
ImGui::TextUnformatted("Not Enough memor");
1946+
19431947
if (ImGui::Button("new constant", size))
19441948
compo.srcs.alloc_constant_source();
19451949

0 commit comments

Comments
 (0)