diff --git a/common/plotters/HPGL_plotter.cpp b/common/plotters/HPGL_plotter.cpp index e728b7e8c0..c0e6b19bd3 100644 --- a/common/plotters/HPGL_plotter.cpp +++ b/common/plotters/HPGL_plotter.cpp @@ -923,18 +923,11 @@ const char* HPGL_PLOTTER::lineTypeCommand( PLOT_DASH_TYPE linetype ) { switch( linetype ) { - case PLOT_DASH_TYPE::DASH: - return "LT -2 4 1;"; - break; - case PLOT_DASH_TYPE::DOT: - return "LT -1 2 1;"; - break; - case PLOT_DASH_TYPE::DASHDOT: - return "LT -4 6 1;"; - break; - default: - return "LT;"; - break; + case PLOT_DASH_TYPE::DASH: return "LT 2 4 1;"; + case PLOT_DASH_TYPE::DOT: return "LT 1 1 1;"; + case PLOT_DASH_TYPE::DASHDOT: return "LT 4 6 1;"; + case PLOT_DASH_TYPE::DASHDOTDOT: return "LT 7 8 1;"; + default: return "LT;"; } }