mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-13 16:34:14 +02:00
fix #1375 don't paste bool info 'exclude_from_bom', >
it can never be "empty" so it is always overridden on target elements.
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