Skip to content

Commit f370f77

Browse files
committed
Grab bug fix from thedmd#186
1 parent 105aeb9 commit f370f77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imgui_node_editor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1091,8 +1091,8 @@ void ed::EditorContext::Begin(const char* id, const ImVec2& size)
10911091
if (!m_IsInitialized)
10921092
{
10931093
// Cycle canvas so it has a change to setup its size before settings are loaded
1094-
m_Canvas.Begin(id, canvasSize);
1095-
m_Canvas.End();
1094+
if(m_Canvas.Begin(id, canvasSize))
1095+
m_Canvas.End();
10961096

10971097
LoadSettings();
10981098
m_IsInitialized = true;

0 commit comments

Comments
 (0)