章政 8 лет назад
Родитель
Сommit
b5cf21c799
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      UAS-MES/FunctionCode/Make/Make_ColorBoxLoadPrint.cs

+ 4 - 1
UAS-MES/FunctionCode/Make/Make_ColorBoxLoadPrint.cs

@@ -175,7 +175,10 @@ namespace UAS_MES.Make
                                     return;
                                 }
                             }
-                            else OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
+                            else {
+                                OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
+                                code.Clear();
+                            }
                         }
                     }
                 }