summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-20 17:09:05 +0200
committerGitHub <noreply@github.com>2019-09-20 17:09:05 +0200
commitfdc2463a1ba6de47c13d976105153cfaa19b86d6 (patch)
treef4b714c1895c7a621d7ed76e61939e70d24392f1 /scene/gui
parent6f10e994fbf282e4e9db0a5988884c50a15849c3 (diff)
parent91ecd7b6a679edeaee6b6ac147074c80d2bd30f6 (diff)
Merge pull request #32150 from luzpaz/typos
Fix misc. source comment typos
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp2
-rw-r--r--scene/gui/tree.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 5173b83407..0f63d7ad58 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -647,7 +647,7 @@ void TextEdit::_notification(int p_what) {
if (scrolling && get_v_scroll() != target_v_scroll) {
double target_y = target_v_scroll - get_v_scroll();
double dist = sqrt(target_y * target_y);
- // To ensure minimap is responsive overide the speed setting.
+ // To ensure minimap is responsive override the speed setting.
double vel = ((target_y / dist) * ((minimap_clicked) ? 3000 : v_scroll_speed)) * get_physics_process_delta_time();
if (Math::abs(vel) >= dist) {
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 2a18436a5e..453feb7b9f 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -328,7 +328,7 @@ void TreeItem::set_collapsed(bool p_collapsed) {
ci = ci->parent;
}
- if (ci) { // collapsing cursor/selectd, move it!
+ if (ci) { // collapsing cursor/selected, move it!
if (tree->select_mode == Tree::SELECT_MULTI) {