mirror of
https://git.code.sf.net/p/fldigi/flrig
synced 2026-08-13 17:28:24 -04:00
Commands
* correct indexing error
This commit is contained in:
parent
f37492b676
commit
fe973dd83d
1 changed files with 3 additions and 3 deletions
|
|
@ -596,7 +596,7 @@ static void cb_btn_icom_post(Fl_Button *o, void*) {
|
|||
}
|
||||
|
||||
static void cb_cmdlbl(Fl_Input2 *o, void *d) {
|
||||
long val = reinterpret_cast<long>(d) - 1;
|
||||
long val = reinterpret_cast<long>(d);
|
||||
struct BPAIR { std::string *plbl; Fl_Button *b; } bpairs[] =
|
||||
{ { &progStatus.label1, btnUser1 },
|
||||
{ &progStatus.label2, btnUser2 },
|
||||
|
|
@ -624,7 +624,7 @@ static void cb_cmdlbl(Fl_Input2 *o, void *d) {
|
|||
}
|
||||
|
||||
static void cb_cmdtext(Fl_Input2 *o, void *d) {
|
||||
long val = reinterpret_cast<long>(d) - 1;
|
||||
long val = reinterpret_cast<long>(d);
|
||||
std::string *cmd[] =
|
||||
{ &progStatus.command1, &progStatus.command2,
|
||||
&progStatus.command3, &progStatus.command4,
|
||||
|
|
@ -1530,7 +1530,7 @@ std::cout << X << ", " << Y << ", " << W << " x " << H << std::endl;
|
|||
bx2->box(FL_FLAT_BOX);
|
||||
bx2->align(FL_ALIGN_CENTER | FL_ALIGN_INSIDE);
|
||||
|
||||
static char *lbl[16] = {
|
||||
static const char *lbl[16] = {
|
||||
"1", "2", "3", "4", "5", "6", "7", "8",
|
||||
"9", "10", "11", "12", "13", "14", "15", "16"};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue