diff --git a/limereport/lrbasedesignintf.cpp b/limereport/lrbasedesignintf.cpp index e344773..cb8cdac 100644 --- a/limereport/lrbasedesignintf.cpp +++ b/limereport/lrbasedesignintf.cpp @@ -1367,7 +1367,7 @@ QObject *BaseDesignIntf::createElement(const QString& /*collectionName*/, const obj = LimeReport::DesignElementsFactory::instance().objectCreator(elementType)(this, this); connect(obj,SIGNAL(propertyChanged(QString,QVariant,QVariant)),page(),SLOT(slotItemPropertyChanged(QString,QVariant,QVariant))); } - } catch (ReportError error){ + } catch (ReportError &error){ qDebug()<autoconnect()) { try { connectConnection(conn); - } catch(ReportError e){ + } catch(ReportError &e){ setLastError(e.what()); putError(e.what()); qDebug()<putError(e.what()); if (!dataManager()->reportSettings() || dataManager()->reportSettings()->suppressAbsentFieldsAndVarsWarnings()) context.replace(rx.cap(0),e.what());