diff --git a/src/agg/process_line_pattern_symbolizer.cpp b/src/agg/process_line_pattern_symbolizer.cpp index a93395131..f0609fd97 100644 --- a/src/agg/process_line_pattern_symbolizer.cpp +++ b/src/agg/process_line_pattern_symbolizer.cpp @@ -107,7 +107,7 @@ void agg_renderer::process(line_pattern_symbolizer const& sym, boost::optional pat; if ((*marker_ptr)->is_bitmap()) { - boost::optional pat = (*marker_ptr)->get_bitmap_data(); + pat = (*marker_ptr)->get_bitmap_data(); } else {