diff --git a/common/plotters/HPGL_plotter.cpp b/common/plotters/HPGL_plotter.cpp index 01e5db8855..7bf1d06bbf 100644 --- a/common/plotters/HPGL_plotter.cpp +++ b/common/plotters/HPGL_plotter.cpp @@ -907,7 +907,7 @@ void HPGL_PLOTTER::sortItems( std::list& items ) items.splice( items.begin(), target ); } -wxString HPGL_PLOTTER::lineTypeCommand( PLOT_DASH_TYPE linetype ) +const char* HPGL_PLOTTER::lineTypeCommand( PLOT_DASH_TYPE linetype ) { switch( linetype ) { diff --git a/common/plotters/plotter_hpgl.h b/common/plotters/plotter_hpgl.h index 1075028ecb..c288f89707 100644 --- a/common/plotters/plotter_hpgl.h +++ b/common/plotters/plotter_hpgl.h @@ -177,7 +177,7 @@ protected: static void sortItems( std::list& items ); /// Return the plot command corresponding to a line type - static wxString lineTypeCommand( PLOT_DASH_TYPE linetype ); + static const char* lineTypeCommand( PLOT_DASH_TYPE linetype ); std::list m_items; HPGL_ITEM* m_current_item;