Return-Path: Delivered-To: apmail-poi-dev-archive@www.apache.org Received: (qmail 96604 invoked from network); 24 Jun 2008 14:39:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jun 2008 14:39:32 -0000 Received: (qmail 31280 invoked by uid 500); 24 Jun 2008 14:39:33 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 31256 invoked by uid 500); 24 Jun 2008 14:39:33 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 31245 invoked by uid 99); 24 Jun 2008 14:39:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 07:39:32 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 14:38:51 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 90AE0234C145; Tue, 24 Jun 2008 07:39:10 -0700 (PDT) From: bugzilla@apache.org To: dev@poi.apache.org Subject: DO NOT REPLY [Bug 45269] New: but at replaceText function - String index out of range: -5 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: HWPF X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: fabioebner@hotmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 24 Jun 2008 07:39:10 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45269 Summary: but at replaceText function - String index out of range: -5 Product: POI Version: unspecified Platform: PC OS/Version: Windows XP Status: NEW Severity: critical Priority: P2 Component: HWPF AssignedTo: dev@poi.apache.org ReportedBy: fabioebner@hotmail.com Created an attachment (id=22168) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22168) .java and .doc file when i try to replace some text, sometimes the funciont dont got the all text in paragraph, i do one loop to got all text in paragraph but i got that error: at java.lang.StringBuffer.substring(StringBuffer.java:416) Paragraph Text: 14as offset - > -1 X = 14 String index out of range: -5 + + + + + Word Dokument bearbeitet + + + + + at org.apache.poi.hwpf.usermodel.Range.text(Range.java:270) at org.apache.poi.hwpf.usermodel.HWPF.work(HWPF.java:84) at org.apache.poi.hwpf.usermodel.HWPF.(HWPF.java:25) at testeword.Main.main(Main.java:51) look at line Paragraph Text: 14as when te all text are 14asdasd and other bug.. when i have some big text that continue in another line, she got like another paragraph but is not, because i dont press ENTER the line end and continue at line down sorry my english -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org