From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 62D9913857C for ; Sat, 19 Jan 2013 21:43:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6941121C047; Sat, 19 Jan 2013 21:43:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B968F21C047 for ; Sat, 19 Jan 2013 21:43:38 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BC11233DABB for ; Sat, 19 Jan 2013 21:43:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5BAB1E4090 for ; Sat, 19 Jan 2013 21:43:35 +0000 (UTC) From: "Sven Eden" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Eden" Message-ID: <1358494560.b2916dcad57a7a09069e2a76e14d3a347cef251f.yamakuzure@gentoo> Subject: [gentoo-commits] proj/ufed:master commit in: / X-VCS-Repository: proj/ufed X-VCS-Files: ufed-curses-checklist.c X-VCS-Directories: / X-VCS-Committer: yamakuzure X-VCS-Committer-Name: Sven Eden X-VCS-Revision: b2916dcad57a7a09069e2a76e14d3a347cef251f X-VCS-Branch: master Date: Sat, 19 Jan 2013 21:43:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 53000396-3025-442e-977f-18121b3ad8b6 X-Archives-Hash: fd460c24f417aa0812cfbaba98115822 commit: b2916dcad57a7a09069e2a76e14d3a347cef251f Author: Sven Eden gmx de> AuthorDate: Fri Jan 18 07:36:00 2013 +0000 Commit: Sven Eden gmx de> CommitDate: Fri Jan 18 07:36:00 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=b2916dca Fixed Scrollbar, the determination where the first not masked flag begins was left in the wrong place. --- ufed-curses-checklist.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ufed-curses-checklist.c b/ufed-curses-checklist.c index 176ceca..1cea40b 100644 --- a/ufed-curses-checklist.c +++ b/ufed-curses-checklist.c @@ -142,10 +142,6 @@ static void read_flags(void) { else ERROR_EXIT(-1, "flag->on can not be determined with \"%s\"\n", &line[on.start]); - /* record first not masked y if not done, yet */ - if (firstNormalY < 0 && !flag->item.isMasked) - firstNormalY = flag->item.top; - /* check and set flag state */ line[state.end] = '\0'; if(state.end-state.start != 4) @@ -173,6 +169,10 @@ static void read_flags(void) { flag->item.isMasked = true; } + /* record first not masked y if not done, yet */ + if (firstNormalY < 0 && !flag->item.isMasked) + firstNormalY = flag->item.top; + y += ndescr; /* Save flag in our linked list */