diff --git a/modules/gmt/modgmt_structs.h b/modules/gmt/modgmt_structs.h index 5dd0f85..3dac6ed 100644 --- a/modules/gmt/modgmt_structs.h +++ b/modules/gmt/modgmt_structs.h @@ -720,8 +720,8 @@ struct gmt_dash: public gmt_struct // Determine shift { WordList wl=Split(in,":"); - if(wl.size()>1) return false; - if(1==wl.size()) + if(wl.size()>2) {err="Incorrect dash format"; return false;} + if(2==wl.size()) { Value2Width s(wl.back()); bool suc=true;