mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Added bool cast fixing compiler crash
This commit is contained in:
@@ -103,7 +103,7 @@ bool TitleBlockTemplate::loadFromXmlFile(const QString &filepath) {
|
||||
|
||||
// parse its content as XML
|
||||
QDomDocument xml_doc;
|
||||
bool xml_parsing = xml_doc.setContent(&template_file);
|
||||
bool xml_parsing = (bool)xml_doc.setContent(&template_file);
|
||||
if (!xml_parsing) {
|
||||
return(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user