mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-09 05:57:14 +03:00
Ruler has been fixed
This commit is contained in:
@@ -485,8 +485,8 @@ QString DataSourceManager::replaceVariables(QString query, QMap<QString,QString>
|
||||
QString DataSourceManager::replaceFields(QString query, QMap<QString,QString> &aliasesToParam, QString masterDatasource)
|
||||
{
|
||||
QRegExp rx(Const::FIELD_RX);
|
||||
int curentAliasIndex=0;
|
||||
if (query.contains(rx)){
|
||||
int curentAliasIndex=0;
|
||||
int pos;
|
||||
while ((pos=rx.indexIn(query))!=-1){
|
||||
QString field=rx.cap(0);
|
||||
@@ -719,7 +719,7 @@ void DataSourceManager::removeConnection(const QString &connectionName)
|
||||
delete (*cit);
|
||||
cit = m_connections.erase(cit);
|
||||
} else {
|
||||
cit++;
|
||||
++cit;
|
||||
}
|
||||
}
|
||||
m_hasChanges = true;
|
||||
|
Reference in New Issue
Block a user