mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
use default value if the parameter is not available
This commit is contained in:
@@ -122,8 +122,8 @@ bool TitleBlockProperties::fromXml(const QDomElement &e) {
|
|||||||
setDateFromString(date);
|
setDateFromString(date);
|
||||||
|
|
||||||
QString display_at_temp;
|
QString display_at_temp;
|
||||||
propertyString(e, "displayAt", &display_at_temp);
|
if (propertyString(e, "displayAt", &display_at_temp) == PropertyFlags::Success)
|
||||||
display_at = (display_at_temp == "bottom" ? Qt::BottomEdge : Qt::RightEdge);
|
display_at = (display_at_temp == "bottom" ? Qt::BottomEdge : Qt::RightEdge); // otherwise it gets default in header file
|
||||||
|
|
||||||
// reads the template used to render the title block
|
// reads the template used to render the title block
|
||||||
if (propertyString(e, "titleblocktemplate", &template_name)) {
|
if (propertyString(e, "titleblocktemplate", &template_name)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user