@@ -73,7 +73,7 @@ Marker::Marker(const Options &options,
7373 data,
7474 stats,
7575 index,
76- horizontal ? &mainId-> value : subAxisId);
76+ horizontal ? &mainId : subAxisId);
7777
7878 auto yChannelRectDim =
7979 channels.at (ChannelId::y).isDimension ()
@@ -93,7 +93,7 @@ Marker::Marker(const Options &options,
9393 data,
9494 stats,
9595 index,
96- !horizontal ? &mainId-> value : subAxisId);
96+ !horizontal ? &mainId : subAxisId);
9797
9898 auto xChannelRectDim =
9999 channels.at (ChannelId::x).isDimension ()
@@ -127,15 +127,15 @@ void Marker::setNextMarker(bool first,
127127 bool horizontal,
128128 bool main)
129129{
130- (main ? nextMainMarkerIdx : nextSubMarkerIdx) = marker.idx ;
131-
132130 if (main) marker.prevMainMarkerIdx = idx;
133131
134132 if (!first) {
135133 double Geom::Point::*const coord =
136134 horizontal ? &Geom::Point::x : &Geom::Point::y;
137135 marker.position .*coord += position.*coord;
138136 }
137+ else if (main && this != &marker)
138+ marker.polarConnection = true ;
139139}
140140
141141void Marker::resetSize (bool horizontal)
@@ -150,10 +150,6 @@ void Marker::setIdOffset(size_t offset)
150150{
151151 if (prevMainMarkerIdx.hasOneValue ())
152152 prevMainMarkerIdx->value += offset;
153- if (nextMainMarkerIdx.hasOneValue ())
154- nextMainMarkerIdx->value += offset;
155- if (nextSubMarkerIdx.hasOneValue ())
156- nextSubMarkerIdx->value += offset;
157153}
158154
159155Conv::JSONObj &&Marker::appendToJSON(Conv::JSONObj &&jsonObj) const
0 commit comments