Problem with pasting to TAdvRichEditor

When I try to paste HTML text containing a horizontal line (in source: <hr size=2 width="100%" align=center>) from the clipboard into TAdvRichEditor, I get the following error (line 5136 in AdvRichEditorRTF.pas (v.

And object in debugger:


I tested with the latest version TAdvRichEditor v1.8.9.5 the HTML code

<!doctype html>
<html lang="en">
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  Before the line
  <hr size=2 width="100%" align=center>
  After the line 

but I cannot see an error here.

Did you insert the html code or the generated text and line from the browser/mail? More precisely, the problem appears for me after copying text from an e-mail (in HTML format) containing a line generated in this way.

I opened this HTML in a browser & copied it from the browser to the clipboard.