Merge pull request #1359 from bhangart/fix/conductorprofile-uninit-orientation

Initialise the orientations of a default-constructed ConductorProfile
This commit is contained in:
ispyisail
2026-10-07 21:14:36 +13:00
committed by GitHub
+5 -3
View File
@@ -38,10 +38,12 @@ class ConductorProfile {
public:
/// Segments composing the conductor
QList<ConductorSegmentProfile *> segments;
/// Orientation of the start terminal
Qet::Orientation beginOrientation;
/// Orientation of the start terminal. Initialised because the default
/// constructor leaves it as is, and the copy constructor and operator=
/// then read it from such a profile.
Qet::Orientation beginOrientation = Qet::North;
/// Orientation of the end terminal.
Qet::Orientation endOrientation;
Qet::Orientation endOrientation = Qet::North;
// methods
public: