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 189161 Details for
Bug 337407
[Table] TableItem has negative image width on "0"-width TableColumn
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]
Patch checks for negative maxImageWidth in TableLCAUtil.getItemMetrics
TableLCAUtil.patch (text/plain), 1.01 KB, created by
Tiber Sept
on 2011-02-17 05:29:48 EST
(
hide
)
Description:
Patch checks for negative maxImageWidth in TableLCAUtil.getItemMetrics
Filename:
MIME Type:
Creator:
Tiber Sept
Created:
2011-02-17 05:29:48 EST
Size:
1.01 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt.q07 >Index: src/org/eclipse/swt/internal/widgets/tablekit/TableLCAUtil.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt/org.eclipse.rap.rwt.q07/src/org/eclipse/swt/internal/widgets/tablekit/TableLCAUtil.java,v >retrieving revision 1.16 >diff -u -r1.16 TableLCAUtil.java >--- src/org/eclipse/swt/internal/widgets/tablekit/TableLCAUtil.java 22 Apr 2010 13:00:07 -0000 1.16 >+++ src/org/eclipse/swt/internal/widgets/tablekit/TableLCAUtil.java 17 Feb 2011 10:26:26 -0000 >@@ -141,7 +141,7 @@ > int imageWidth = tableAdapter.getItemImageWidth( i ); > if( table.getColumnCount() > 0 ) { > int maxImageWidth >- = bounds.width - ( ( imageBounds.x - checkWidth ) - bounds.x ); >+ = Math.max( 0, bounds.width - ( ( imageBounds.x - checkWidth ) - bounds.x ) ); > if( imageWidth > maxImageWidth ) { > imageWidth = maxImageWidth; > }
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 337407
: 189161