Skip to content

Commit 28d303e

Browse files
committed
Fix weekend bugs
1 parent d2037f4 commit 28d303e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/base/conv/auto_json.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ struct JSONObj : protected JSONRepeat<'{', '}'>
328328

329329
template <class T> JSONObj &&mergeObj(T &&obj) &&
330330
{
331-
if (was) json.pop_back();
332331
auto pre_size = json.size();
333332

334333
staticObj(obj);

src/chart/rendering/drawlegend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void DrawLegend::ColorGradientSetter::operator()(Gfx::ICanvas &canvas,
106106
for (auto &stop : modifiableStops) stop.value = color;
107107

108108
modifiableStops[0].value.alpha = 0.0;
109-
modifiableStops[5].value.alpha = 0.0;
109+
modifiableStops[3].value.alpha = 0.0;
110110

111111
canvas.setBrushGradient(transform(line), gradient);
112112
}

0 commit comments

Comments
 (0)