Skip to content

Commit b3a728d

Browse files
committed
try to broken ast fix
1 parent ddf99a3 commit b3a728d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/chart/rendering/drawaxes.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void DrawAxes::generateMeasure(Gen::AxisId axisIndex,
145145
double stepSize,
146146
double weight)
147147
{
148-
auto orientation = ++!axisIndex;
148+
auto orientation = !++axisIndex;
149149
const auto &meas = getAxis(axisIndex).measure;
150150
auto rangeSize = meas.range.size();
151151
auto singleLabelRange = Math::Floating::is_zero(rangeSize);
@@ -213,7 +213,7 @@ void DrawAxes::generateMeasure(Gen::AxisId axisIndex,
213213

214214
Geom::Line DrawAxes::getAxisLine(Gen::AxisId axisIndex) const
215215
{
216-
auto offset = this->origo().getCoord(++!axisIndex);
216+
auto offset = this->origo().getCoord(!++axisIndex);
217217

218218
auto direction = Geom::Point::Ident(++axisIndex);
219219

@@ -267,7 +267,7 @@ Geom::Point DrawAxes::getTitleBasePos(Gen::AxisId axisIndex,
267267
case Pos::min_edge: break;
268268
case Pos::max_edge: orthogonal = 1.0; break;
269269
case Pos::axis:
270-
orthogonal = origo().getCoord(++!axisIndex);
270+
orthogonal = origo().getCoord(!++axisIndex);
271271
break;
272272
}
273273

src/chart/rendering/drawguides.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void DrawGuides::drawGuide(Gen::AxisId axisId,
4343
auto eventTarget = Events::Targets::axisGuide(axisId);
4444

4545
auto ident = Geom::Point::Ident(++axisId);
46-
auto normal = Geom::Point::Ident(++!axisId);
46+
auto normal = Geom::Point::Ident(!++axisId);
4747
auto relMax = ident * val;
4848

4949
parent.canvas.setLineColor(color);

src/chart/rendering/drawinterlacing.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void DrawInterlacing::drawGeometries(Gen::AxisId axisIndex) const
6565
othGuides.interlacings);
6666
}
6767

68-
auto orientation = ++!axisIndex;
68+
auto orientation = !++axisIndex;
6969

7070
parent.painter.setPolygonToCircleFactor(0);
7171
parent.painter.setPolygonStraightFactor(0);
@@ -143,7 +143,7 @@ void DrawInterlacing::drawGeometries(Gen::AxisId axisIndex) const
143143
void DrawInterlacing::drawTexts(Gen::AxisId axisIndex) const
144144
{
145145
const auto &axis = parent.getAxis(axisIndex).measure;
146-
auto orientation = ++!axisIndex;
146+
auto orientation = !++axisIndex;
147147
auto origo = parent.origo().getCoord(orientation);
148148
const auto &guides = parent.plot->guides.at(axisIndex);
149149
const auto &axisStyle = parent.rootStyle.plot.getAxis(axisIndex);
@@ -212,7 +212,7 @@ void DrawInterlacing::drawDataLabel(
212212
const ::Anim::String &unit,
213213
double alpha) const
214214
{
215-
auto orientation = ++!axisIndex;
215+
auto orientation = !++axisIndex;
216216
const auto &labelStyle =
217217
parent.rootStyle.plot.getAxis(axisIndex).label;
218218

@@ -287,7 +287,7 @@ void DrawInterlacing::drawSticks(double tickLength,
287287
parent.coordSys
288288
.convertDirectionAt({tickPos,
289289
tickPos
290-
+ Geom::Point::Coord(++!axisIndex, -1.0)})
290+
+ Geom::Point::Coord(!++axisIndex, -1.0)})
291291
.segment(0, tickLength)](const auto &position)
292292
{
293293
switch (position) {

0 commit comments

Comments
 (0)