From 591bc837eb07e8ab5b411353f1f70a3c8cf2e90f Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Tue, 4 Oct 2016 01:13:48 +1000 Subject: [PATCH] Gmt module: Fix error in conversion function from string to gmt_dash. --- modules/gmt/modgmt_structs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;