From 2b6813bc0b2c521e9e08348d95c168df63d27410 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Tue, 8 May 2007 16:00:13 +0000 Subject: [PATCH] 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 --- source/blender/src/drawtext.c | 4 +--- 1 file changed, 1 insertion(+), 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;