소스 검색

* TDOMText.SplitText should check that its argument isn't readonly before doing anything else.
Since the procedure still raises NO_MODIFICATION_ERR later (while inserting new node to the parent),
the testsuite wasn't able to detect this bug, causing the old node to be modified and the new node to leak :/

git-svn-id: trunk@13144 -

sergei 16 년 전
부모
커밋
66c0840bce
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/fcl-xml/src/dom.pp

+ 1 - 0
packages/fcl-xml/src/dom.pp

@@ -2399,6 +2399,7 @@ end;
 
 function TDOMText.SplitText(offset: LongWord): TDOMText;
 begin
+  Changing;
   if offset > Length then
     raise EDOMIndexSize.Create('Text.SplitText');