1 diff --git a/gpPanel/gpPanel.cpp b/gpPanel/gpPanel.cpp
2 index 7af20b5..908523c 100644
3 --- a/gpPanel/gpPanel.cpp
4 +++ b/gpPanel/gpPanel.cpp
5 @@ -720,8 +720,8 @@ void gpPanel::OnMenuItemPrintPreview(wxCommandEvent& event)
6 gpLayer_s *gp = GetLayerByMenuId(event.GetId() );
9 - mpPrintout *plotPrint = new mpPrintout(gp->m_plot, gp->layer->GetName());
10 - mpPrintout *plotPrintPreview = new mpPrintout(gp->m_plot, gp->layer->GetName());
11 + mpPrintout *plotPrint = new mpPrintout(gp->m_plot, gp->layer->GetName().c_str());
12 + mpPrintout *plotPrintPreview = new mpPrintout(gp->m_plot, gp->layer->GetName().c_str());
14 wxPrintPreview *preview = new wxPrintPreview(plotPrintPreview, plotPrint);
16 @@ -765,7 +765,7 @@ void gpPanel::OnMenuItemSaveScreenshot(wxCommandEvent& event)
19 wxString reso = aChoices.Item(index);
20 - if( reso.CompareTo(_("custom")) == 0 ){
21 + if( reso.CompareTo(_("custom").c_str()) == 0 ){
22 reso = wxGetTextFromUser(_("Write image resolution (format: [width]x[height]"), _("Custom resolution for image"), _("640x480"), this);
24 if(reso.Find('x') != -1)