45c6d01fbee2a0849c6b805d53e535ef5ea18466

Author
outfoxxed <outfoxxed@outfoxxed.me>
Committer
outfoxxed <outfoxxed@outfoxxed.me>
Date

Message

fix: crash on creating tab bars

Diff

 1diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp
 2index 2d51f59cd914a15d0e2a53c90e775043cca3a565..caa9b2f7a57f96be0374432b9f4ee27b8b11c804 100644
 3--- a/src/TabGroup.cpp
 4+++ b/src/TabGroup.cpp
 5@@ -11,6 +11,8 @@
 6 #include <pixman.h>
 7 
 8 #include "globals.hpp"
 9+#include "src/helpers/memory/SharedPtr.hpp"
10+#include "src/render/Texture.hpp"
11 
12 Hy3TabBarEntry::Hy3TabBarEntry(Hy3TabBar& tab_bar, Hy3Node& node): tab_bar(tab_bar), node(node) {
13 	this->focused
14@@ -52,6 +54,8 @@ Hy3TabBarEntry::Hy3TabBarEntry(Hy3TabBar& tab_bar, Hy3Node& node): tab_bar(tab_b
15 
16 	this->vertical_pos = 0.0;
17 	this->fade_opacity = 1.0;
18+
19+	this->texture = makeShared<CTexture>();
20 }
21 
22 bool Hy3TabBarEntry::operator==(const Hy3Node& node) const { return this->node == node; }