Fix readImageFile to set mSvg, use in drawShadow also

This commit is contained in:
gitlost
2019-08-23 09:27:14 +01:00
parent 98038e34e7
commit e8daa8aa48
7 changed files with 198 additions and 74 deletions
+3 -1
View File
@@ -273,7 +273,8 @@ namespace glabels
delete model;
return nullptr;
}
model->setTmplate( tmplate );
model->setTmplate( tmplate ); // Copies arg
delete tmplate;
}
else if ( tagName == "Objects" )
{
@@ -576,6 +577,7 @@ namespace glabels
if ( !filename.isEmpty() )
{
qWarning() << "Embedded file" << fn << "missing. Trying actual file.";
filenameNode.setData( fn );
}
return new ModelImageObject( x0, y0, w, h, lockAspectRatio,
filenameNode,