summaryrefslogtreecommitdiffstats
path: root/scene/resources/text_line.h
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2021-02-09 18:24:36 +0100
committerRafał Mikrut <mikrutrafal@protonmail.com>2021-02-09 18:24:36 +0100
commit7961a1dea3e7ce8c4e7197a0000e35ab31e9ff2e (patch)
tree9560a84f1300e2466338426f2e267adba6a06a53 /scene/resources/text_line.h
parentdf9c98e107b19fc50bc5ae9f7ed624d693c0fb32 (diff)
downloadredot-engine-7961a1dea3e7ce8c4e7197a0000e35ab31e9ff2e.tar.gz
Initialize class variables with default values in scene/ [2/2]
Diffstat (limited to 'scene/resources/text_line.h')
-rw-r--r--scene/resources/text_line.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/text_line.h b/scene/resources/text_line.h
index 3e0a74a84b..74d4f2c32c 100644
--- a/scene/resources/text_line.h
+++ b/scene/resources/text_line.h
@@ -45,7 +45,7 @@ class TextLine : public Reference {
bool dirty = true;
- float width = -1;
+ float width = -1.0;
uint8_t flags = TextServer::JUSTIFICATION_WORD_BOUND | TextServer::JUSTIFICATION_KASHIDA;
HAlign align = HALIGN_LEFT;