We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e9bc1f commit 4ad23a3Copy full SHA for 4ad23a3
1 file changed
src/GUI.cpp
@@ -108,9 +108,11 @@ GUI::LayerSet::LayerSet(ReadWriteAPILayerStore* const store)
108
void GUI::LayerSet::GUILayersList() {
109
auto viewport = ImGui::GetMainViewport();
110
const auto dpiScale = Platform::Get().GetDPIScaling();
111
- ImGui::BeginListBox(
112
- "##Layers",
113
- {viewport->WorkSize.x - (256 * dpiScale), viewport->WorkSize.y / 2});
+ if (!ImGui::BeginListBox(
+ "##Layers",
+ {viewport->WorkSize.x - (256 * dpiScale), viewport->WorkSize.y / 2})) {
114
+ return;
115
+ }
116
ImGuiListClipper clipper {};
117
clipper.Begin(static_cast<int>(mLayers.size()));
118
0 commit comments