Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed if-else
  • Loading branch information
satyayelgatte committed May 2, 2019
1 parent 74719b8 commit 7c28787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/text_edit.cpp
Expand Up @@ -860,7 +860,7 @@ void TextEdit::_notification(int p_what) {
}

const String &str = wrap_rows[line_wrap_index];
int indent_px = line_wrap_index != 0 ? get_indent_level(line) * cache.font->get_char_size(' ').width : 0;
int indent_px =get_indent_level(line) * cache.font->get_char_size(' ').width;
if (indent_px >= wrap_at) {
indent_px = 0;
}
Expand Down

0 comments on commit 7c28787

Please sign in to comment.