Skip to content

Commit

Permalink
Fix error in picture mask: ** If the picture
Browse files Browse the repository at this point in the history
 mask contains a different literal char it still **            ** needs to
 decrement the position pointer. Otherwise a following **            **
 non-literal char will be copied to the wrong position.         **
  • Loading branch information
hkollmann committed May 26, 2016
1 parent 3fe6117 commit b5c3723
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/ovcpb.pas
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,13 @@ procedure TOvcPictureBase.pbMergePicture(const Dest, Src : PChar);
Dest[I] := UserData.SubstChars[AnsiChar(PicChar)];
pmDecimalPt :
Dest[I] := IntlSupport.DecimalChar;
{** AUCOS - Patch **
** If the picture mask contains a different literal char it still **
** needs to decrement the position pointer. Otherwise a following **
** non-literal char will be copied to the wrong position. **
** Andreas Scholz, 02.07.2012 ** }
else
Dec(SrcLen);
end;
end;
end;
Expand Down

0 comments on commit b5c3723

Please sign in to comment.