mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-26 05:18:11 +03:00
Callback datasource columnIndexByName() has been fixed
This commit is contained in:
parent
b44077b443
commit
b0538393d1
@ -762,7 +762,7 @@ QString CallbackDatasource::columnNameByIndex(int columnIndex)
|
|||||||
int CallbackDatasource::columnIndexByName(QString name)
|
int CallbackDatasource::columnIndexByName(QString name)
|
||||||
{
|
{
|
||||||
for (int i=0;i<m_headers.size();++i) {
|
for (int i=0;i<m_headers.size();++i) {
|
||||||
if (m_headers[i].compare(name) == 0)
|
if (m_headers[i].compare(name, Qt::CaseInsensitive) == 0)
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
// if (m_headers.size()==0){
|
// if (m_headers.size()==0){
|
||||||
|
Loading…
Reference in New Issue
Block a user