diff --git a/HEZON_ITK/bs_sap.cpp b/HEZON_ITK/bs_sap.cpp index f5900fa..b4ef9b7 100644 --- a/HEZON_ITK/bs_sap.cpp +++ b/HEZON_ITK/bs_sap.cpp @@ -203,7 +203,7 @@ void get_bom(System::Collections::Generic::List0?pid:id; int index = pid.find('-'); if (index != -1) - pid = pid.substr(index + 1); + pid = pid.substr(0,index); } for (int j = 0; j < line_cnt; j++) {