修复Range数据,同值不能重复添加的问题
This commit is contained in:
parent
6a668a652f
commit
afd68c7a7b
|
@ -3032,6 +3032,8 @@ void CDlgOptJson::OnBnClickedButtonShowui()
|
||||||
}
|
}
|
||||||
jsn->release();
|
jsn->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int n = file_util::set_clipboard(text.c_str(), text.length() * 2, CF_UNICODETEXT);
|
||||||
text.clear();
|
text.clear();
|
||||||
if (sane.dev_opt.init(utf8.c_str()))
|
if (sane.dev_opt.init(utf8.c_str()))
|
||||||
{
|
{
|
||||||
|
@ -3048,6 +3050,5 @@ void CDlgOptJson::OnBnClickedButtonShowui()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dlg_page;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -150,6 +150,8 @@ void CDlgRange::OnBnClickedButton1()
|
||||||
GotoDlgCtrl(GetDlgItem(IDC_COMBO_RANGE_FIELD));
|
GotoDlgCtrl(GetDlgItem(IDC_COMBO_RANGE_FIELD));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (type_ == TYPE_LIST)
|
||||||
|
{
|
||||||
for (int i = 0; i < list_.GetItemCount(); ++i)
|
for (int i = 0; i < list_.GetItemCount(); ++i)
|
||||||
{
|
{
|
||||||
wchar_t buf[25] = { 0 };
|
wchar_t buf[25] = { 0 };
|
||||||
|
@ -162,6 +164,7 @@ void CDlgRange::OnBnClickedButton1()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(ind == -1)
|
if(ind == -1)
|
||||||
ind = list_.InsertItem(list_.GetItemCount(), val.c_str());
|
ind = list_.InsertItem(list_.GetItemCount(), val.c_str());
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue