Ignore:
Timestamp:
Feb 18, 2022, 2:53:31 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Keep original encoding text in loaded contacts attributes for later save.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UContactImage.pas

    r112 r119  
    261261      Modified := True;
    262262      Photo := Contact.Fields[FieldIndex];
    263       if (Photo <> '') and (PhotoProperty.Encoding <> '') then begin
     263      if (Photo <> '') and (PhotoProperty.Encoding <> veNone) then begin
    264264        Stream := TMemoryStream.Create;
    265265        try
     
    295295      if Url <> '' then begin
    296296        Contact.Fields[FieldIndex] := Url;
    297         PhotoProperty.Encoding := '';
     297        PhotoProperty.Encoding := veNone;
    298298      end else begin
    299         PhotoProperty.Encoding := VCardBase64;
     299        PhotoProperty.Encoding := veBase64;
    300300        Stream := TMemoryStream.Create;
    301301        try
Note: See TracChangeset for help on using the changeset viewer.