ElementEditor: in LineEditor::setPart remove redundant calls to StyleEditor::setPart

This commit is contained in:
damianCaceres
2020-08-03 20:59:20 +01:00
committed by Laurent Trinques
parent dd257c48d9
commit 9d772b4091

View File

@@ -125,7 +125,6 @@ bool LineEditor::setPart(CustomElementPart *new_part)
disconnectChangeConnections(); disconnectChangeConnections();
} }
part = nullptr; part = nullptr;
style_ -> setPart(nullptr);
return(true); return(true);
} }
if (PartLine *part_line = dynamic_cast<PartLine *>(new_part)) if (PartLine *part_line = dynamic_cast<PartLine *>(new_part))
@@ -136,7 +135,6 @@ bool LineEditor::setPart(CustomElementPart *new_part)
disconnectChangeConnections(); disconnectChangeConnections();
} }
part = part_line; part = part_line;
style_ -> setPart(part);
updateForm(); updateForm();
setUpChangeConnections(); setUpChangeConnections();
return(true); return(true);