mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-13 16:34:14 +02:00
Merge pull request #1457 from ankostis/fix1376-no-bom-transfer
Skip boolean `"exclude_from_bom"' when pasting element infos
This commit is contained in:
@@ -3184,7 +3184,8 @@ void QETDiagramEditor::pasteElementInformations()
|
||||
new_info.remove(QETInformation::ELMT_FORMULA_ID);
|
||||
}
|
||||
for (const QString &key : source.keys()) {
|
||||
if (key == QETInformation::ELMT_FORMULA_ID && !keep_scheme_id)
|
||||
if (key == QETInformation::ELMT_FORMULA_ID && !keep_scheme_id
|
||||
|| key == "exclude_from_bom")
|
||||
continue;
|
||||
new_info.addValue(key, source.value(key), source.keyMustShow(key));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user