aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_block.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-03-19 19:11:33 +0800
committercrupest <crupest@outlook.com>2020-03-19 19:11:33 +0800
commit5da4f511e85de9e79bee40e3c5e04f899a48723c (patch)
tree8c07925417fc1f062bb6f4ec64dc9226199e6099 /src/ui/controls/text_block.cpp
parentad29543fe081d2a0a5e6737f9073399e4e91383f (diff)
downloadcru-5da4f511e85de9e79bee40e3c5e04f899a48723c.tar.gz
cru-5da4f511e85de9e79bee40e3c5e04f899a48723c.tar.bz2
cru-5da4f511e85de9e79bee40e3c5e04f899a48723c.zip
...
Diffstat (limited to 'src/ui/controls/text_block.cpp')
-rw-r--r--src/ui/controls/text_block.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/controls/text_block.cpp b/src/ui/controls/text_block.cpp
index 0a243d2e..1c20540d 100644
--- a/src/ui/controls/text_block.cpp
+++ b/src/ui/controls/text_block.cpp
@@ -56,7 +56,7 @@ render::CanvasRenderObject* TextBlock::GetCaretRenderObject() {
return caret_render_object_.get();
}
-platform::graph::IBrush* TextBlock::GetCaretBrush() {
- return caret_brush_.get();
+std::shared_ptr<platform::graph::IBrush> TextBlock::GetCaretBrush() {
+ return caret_brush_;
}
} // namespace cru::ui::controls