Browse Source

HackStudio: Fix "Add new Editor" action

Itamar 4 years ago
parent
commit
dac7db830a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      DevTools/HackStudio/Editor.cpp

+ 1 - 0
DevTools/HackStudio/Editor.cpp

@@ -48,6 +48,7 @@ namespace HackStudio {
 
 
 Editor::Editor()
 Editor::Editor()
 {
 {
+    set_document(CodeDocument::create());
     m_documentation_tooltip_window = GUI::Window::construct();
     m_documentation_tooltip_window = GUI::Window::construct();
     m_documentation_tooltip_window->set_rect(0, 0, 500, 400);
     m_documentation_tooltip_window->set_rect(0, 0, 500, 400);
     m_documentation_tooltip_window->set_window_type(GUI::WindowType::Tooltip);
     m_documentation_tooltip_window->set_window_type(GUI::WindowType::Tooltip);