diff options
| author | Andreas Haas | 2017-06-03 10:54:24 +0200 |
|---|---|---|
| committer | Andreas Haas | 2017-06-03 11:26:39 +0200 |
| commit | 9bc534896135322a578118f433f0dc6265839082 (patch) | |
| tree | 30316ffea9d6321c6b8292a02b6db3dac9cd1053 /editor/plugins/script_text_editor.cpp | |
| parent | 5a6d4971e13157cc5f0de199de7f6d257070fc66 (diff) | |
| download | godot-9bc534896135322a578118f433f0dc6265839082.tar.gz godot-9bc534896135322a578118f433f0dc6265839082.tar.zst godot-9bc534896135322a578118f433f0dc6265839082.zip | |
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
| -rw-r--r-- | editor/plugins/script_text_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 2d3a14e52..70bda3994 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1236,8 +1236,8 @@ void ScriptTextEditor::_text_edit_gui_input(const Ref<InputEvent> &ev) { int col, row; TextEdit *tx = code_editor->get_text_edit(); - tx->_get_mouse_pos(mb->get_global_pos() - tx->get_global_position(), row, col); - Vector2 mpos = mb->get_global_pos() - tx->get_global_position(); + tx->_get_mouse_pos(mb->get_global_position() - tx->get_global_position(), row, col); + Vector2 mpos = mb->get_global_position() - tx->get_global_position(); bool have_selection = (tx->get_selection_text().length() > 0); bool have_color = (tx->get_word_at_pos(mpos) == "Color"); if (have_color) { |
