diff options
author | Kent Mein <mein@cs.umn.edu> | 2007-05-08 20:00:13 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2007-05-08 20:00:13 +0400 |
commit | 2b6813bc0b2c521e9e08348d95c168df63d27410 (patch) | |
tree | d30d588df5bfb1788ae46f2221faf4eb613c076b /source/blender/src | |
parent | ff6585e58495b1520595d356954046dcff1419ac (diff) |
First fix from coverity, removing one line of dead code.
The if statement above this line makes it so this line will never be
true, so its not needed.
Kent
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/drawtext.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c index 7dd5539de15..1ea29886850 100644 --- a/source/blender/src/drawtext.c +++ b/source/blender/src/drawtext.c @@ -690,12 +690,10 @@ static void draw_cursor(SpaceText *st) { if(st->showlinenrs) { if (!x) x= TXT_OFFSET + TEXTXLOC -4; - } - else { + } else { if (!x) x= TXT_OFFSET - 4; } - if (!x) x= TXT_OFFSET-10; while (linef && linef != linel) { h= txt_get_span(text->lines.first, linef) - st->top; if (h>st->viewlines) break; |