aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/controls/text_block.cpp')
-rw-r--r--src/ui/controls/text_block.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/controls/text_block.cpp b/src/ui/controls/text_block.cpp
index ece599e8..0a243d2e 100644
--- a/src/ui/controls/text_block.cpp
+++ b/src/ui/controls/text_block.cpp
@@ -4,6 +4,7 @@
#include "cru/ui/render/stack_layout_render_object.hpp"
#include "cru/ui/render/text_render_object.hpp"
#include "cru/ui/ui_manager.hpp"
+#include "text_control_service.hpp"
namespace cru::ui::controls {
using render::CanvasRenderObject;
@@ -29,7 +30,7 @@ TextBlock::TextBlock()
caret_brush_ = theme_resources->caret_brush;
- service_ = std::make_unique<TextControlService>(this, this);
+ service_ = std::make_unique<TextControlService<TextBlock>>(this);
service_->SetEnabled(true);
}