mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-04 04:06:43 +03:00
SvgItem has been fixed
This commit is contained in:
@@ -110,8 +110,8 @@ void SVGItem::updateItemSize(DataSourceManager *dataManager, RenderPass pass, in
|
||||
QVariant data = dataManager->variable(m_variable);
|
||||
if (data.type() == QVariant::String){
|
||||
m_image = imageFromResource(data.toString());
|
||||
} else if (data.type() == QVariant::Image){
|
||||
m_image = data.value<QByteArray>();
|
||||
} else if (data.type() == QVariant::ByteArray) {
|
||||
m_image = data.value<QByteArray>() ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -142,6 +142,8 @@ void SVGItem::setVariable(const QString &variable)
|
||||
m_variable = variable;
|
||||
}
|
||||
|
||||
bool SVGItem::isNeedUpdateSize(RenderPass) const { return m_image.isNull() ; }
|
||||
|
||||
QString SVGItem::resourcePath() const
|
||||
{
|
||||
return m_resourcePath;
|
||||
|
Reference in New Issue
Block a user