LazReport, for selected barcode symbols with invalid data, return the fixed code instead of the default one

git-svn-id: trunk@33472 -
This commit is contained in:
jesus 2011-11-11 07:47:11 +00:00
parent ff1298f838
commit fe098f786f

View File

@ -254,7 +254,8 @@ begin
Memo1.Assign(Memo);
if (Memo1.Text <> '') and (pos('[',Memo1.Strings[0])=0) and
((bcNames[Param.cBarType, 1] = 'A') or IsNumeric(Memo1.Strings[0])) then
((bcNames[Param.cBarType, 1] = 'A') or IsNumeric(Memo1.Strings[0]) or
Barc.BarcodeTypeChecked(Param.cBarType) ) then
begin
BarC.Text := Memo1.Strings[0];
BarC.Checksum := Param.cCheckSum;
@ -594,7 +595,6 @@ begin
XML.SetValue(Path+'BarCode/Zoom', GetSaveProperty('Zoom'));
end;
//--------------------------------------------------------------------------
procedure TfrBarCodeForm.FormCreate(Sender: TObject);
var