Fix display of Spin Options with negative range
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 19 Oct 2014 11:16:43 +0000 (13:16 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 21 Oct 2014 18:54:32 +0000 (20:54 +0200)
winboard/wsettings.c

index 215ea18..9c4c967 100644 (file)
@@ -575,8 +575,8 @@ void AddOption(int x, int y, Control type, int i)
     int extra, num = ES_NUMBER;\r
 \r
     switch(type) {\r
-//     case Slider+100:\r
-//         num = 0; // needs text control for accepting negative numbers\r
+       case Spin+100:\r
+           num = 0; // needs text control for accepting negative numbers\r
        case Slider:\r
        case Spin:\r
            AddControl(x, y+1, 95, 9, 0x0082, SS_ENDELLIPSIS | WS_VISIBLE | WS_CHILD, i);\r