@@ -73,7 +73,7 @@ Marker::Marker(const Options &options,
73
73
data,
74
74
stats,
75
75
index,
76
- horizontal ? &mainId-> value : subAxisId);
76
+ horizontal ? &mainId : subAxisId);
77
77
78
78
auto yChannelRectDim =
79
79
channels.at (ChannelId::y).isDimension ()
@@ -93,7 +93,7 @@ Marker::Marker(const Options &options,
93
93
data,
94
94
stats,
95
95
index,
96
- !horizontal ? &mainId-> value : subAxisId);
96
+ !horizontal ? &mainId : subAxisId);
97
97
98
98
auto xChannelRectDim =
99
99
channels.at (ChannelId::x).isDimension ()
@@ -127,15 +127,15 @@ void Marker::setNextMarker(bool first,
127
127
bool horizontal,
128
128
bool main)
129
129
{
130
- (main ? nextMainMarkerIdx : nextSubMarkerIdx) = marker.idx ;
131
-
132
130
if (main) marker.prevMainMarkerIdx = idx;
133
131
134
132
if (!first) {
135
133
double Geom::Point::*const coord =
136
134
horizontal ? &Geom::Point::x : &Geom::Point::y;
137
135
marker.position .*coord += position.*coord;
138
136
}
137
+ else if (main && this != &marker)
138
+ marker.polarConnection = true ;
139
139
}
140
140
141
141
void Marker::resetSize (bool horizontal)
@@ -150,10 +150,6 @@ void Marker::setIdOffset(size_t offset)
150
150
{
151
151
if (prevMainMarkerIdx.hasOneValue ())
152
152
prevMainMarkerIdx->value += offset;
153
- if (nextMainMarkerIdx.hasOneValue ())
154
- nextMainMarkerIdx->value += offset;
155
- if (nextSubMarkerIdx.hasOneValue ())
156
- nextSubMarkerIdx->value += offset;
157
153
}
158
154
159
155
Conv::JSONObj &&Marker::appendToJSON(Conv::JSONObj &&jsonObj) const
0 commit comments