From 0aff050c49b8aada34154865d0066be53ba4e948 Mon Sep 17 00:00:00 2001 From: Doczom Date: Sun, 14 Nov 2021 15:23:19 +0000 Subject: [PATCH] fix count type git-svn-id: svn://kolibrios.org@9267 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/clipview/clipview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/cmm/clipview/clipview.c b/programs/cmm/clipview/clipview.c index 0b68664ee1..b3709d9530 100644 --- a/programs/cmm/clipview/clipview.c +++ b/programs/cmm/clipview/clipview.c @@ -156,7 +156,7 @@ void SelectList_DrawLine(dword i) EDX = ConvertSizeToKb(cdata.size); WriteText(GAP+44+16, yyy+TEXT_Y, 0x90, 0x000000, EDX); slot_data_type_number = cdata.type; - if (slot_data_type_number > 4) slot_data_type_number = 4; + if (slot_data_type_number >= 4) slot_data_type_number = 3; WriteText(GAP+140, yyy+TEXT_Y, 0x90, 0x000000, data_type[slot_data_type_number]); WriteTextB(GAP+list.w - 88, yyy+TEXT_Y, 0x90, 0x006597, "TEXT HEX"); DefineButton(GAP+list.w - 98, yyy, 50, LINE_H, 100+i+BT_HIDE, NULL);