| 610 | } |
| 611 | |
| 612 | void CanvasLayoutDialog::OnShowLegend(wxCommandEvent &event) |
| 613 | { |
| 614 | bool show_legend = m_cb->GetValue(); |
| 615 | if (m_no_bg) { |
| 616 | m_no_bg->Enable(show_legend); |
| 617 | } |
| 618 | legend_shape->Select(show_legend); |
| 619 | legend_shape->Show(show_legend); |
| 620 | wxClientDC dc(canvas); |
| 621 | canvas->Redraw(dc); |
| 622 | is_resize = true; |
| 623 | } |
| 624 | |
| 625 | void CanvasLayoutDialog::OnTransparentBG(wxCommandEvent &event) |
| 626 | { |