Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2007-05-08 20:00:13 +0400
committerKent Mein <mein@cs.umn.edu>2007-05-08 20:00:13 +0400
commit2b6813bc0b2c521e9e08348d95c168df63d27410 (patch)
treed30d588df5bfb1788ae46f2221faf4eb613c076b /source
parentff6585e58495b1520595d356954046dcff1419ac (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')
-rw-r--r--source/blender/src/drawtext.c4
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;