Skip to content

Commit d110e93

Browse files
committed
Fixed #41
1 parent 73bc36f commit d110e93

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

imgproc/render_lineseg_trees.imgproc.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,22 @@ enum class Direction : int
105105
? ModulationParams{mod_params.width_growth, mod_params.intensity_growth}
106106
: ModulationParams{-mod_params.width_growth, -mod_params.intensity_growth};
107107

108+
(void)draw(points.front().second.data, args, mod_state, mod_params, Direction::Forward);
109+
108110
std::ranges::for_each(
109111
range,
110112
[start = points.front().first,
111113
&args,
112114
&mod_state,
115+
mod_params,
113116
growth_factor = ModulationParams{std::exp2(growth_factors_singed.width_growth / length),
114117
std::exp2(growth_factors_singed.intensity_growth
115118
/ length)}](auto const& item) mutable {
116119
mod_state = draw(item.first, start, args, mod_state, growth_factor);
117-
start = item.first;
120+
(void)draw(item.second.data, args, mod_state, mod_params, Direction::Forward);
121+
start = item.first;
118122
});
119123

120-
std::ranges::for_each(points, [args, mod_state, mod_params](auto const& item) {
121-
(void)draw(item.second.data, args, mod_state, mod_params, Direction::Forward);
122-
});
123-
124124
return mod_state;
125125
}
126126

0 commit comments

Comments
 (0)