Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 170395 Details for
Bug 314620
java.lang.ArrayIndexOutOfBoundsException in org.eclipse.swt.graphics.TextLayout.computeRuns
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
prints
prints.patch (text/plain), 1.62 KB, created by
Felipe Heidrich
on 2010-05-28 13:58:14 EDT
(
hide
)
Description:
prints
Filename:
MIME Type:
Creator:
Felipe Heidrich
Created:
2010-05-28 13:58:14 EDT
Size:
1.62 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.swt >Index: Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java,v >retrieving revision 1.100 >diff -u -r1.100 TextLayout.java >--- Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java 26 May 2010 17:58:52 -0000 1.100 >+++ Eclipse SWT/gtk/org/eclipse/swt/graphics/TextLayout.java 28 May 2010 17:57:08 -0000 >@@ -114,6 +114,7 @@ > int segementsLength = segmentsText.length(); > int nSegments = segementsLength - text.length(); > int offsetCount = nSegments; >+ try { > int[] lineOffsets = null; > if ((ascent != -1 || descent != -1) && segementsLength > 0) { > PangoRectangle rect = new PangoRectangle(); >@@ -176,6 +177,24 @@ > } > } > } >+ >+ } catch (Exception e) { >+ System.out.println("segmentsText:"+segmentsText); >+ System.out.println("segmentsText.length:"+segmentsText.length()); >+ System.out.println("ascent:"+ascent); >+ System.out.println("descent:"+descent); >+ System.out.println("nSegments:"+nSegments); >+ if (invalidOffsets != null) { >+ System.out.print("invalidOffsets:"); >+ for (int i = 0; i < invalidOffsets.length; i++) { >+ System.out.print(invalidOffsets[i]+", "); >+ } >+ System.out.println(); >+ } >+ System.out.println("lineCount:" + OS.pango_layout_get_line_count(layout)); >+ System.out.println("strlen:" + OS.strlen(ptr)); >+ e.printStackTrace(System.out); >+ } > int strlen = OS.strlen(ptr); > Font defaultFont = font != null ? font : device.systemFont; > for (int i = 0; i < stylesCount - 1; i++) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 314620
: 170395