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 52140 Details for
Bug 160380
[NoteTextLabel] WrapLabel text not drawn properly when text alignment is centered.
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
fix160380_20061017.txt (text/plain), 1.23 KB, created by
Syed Atif
on 2006-10-17 12:10:49 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Syed Atif
Created:
2006-10-17 12:10:49 EDT
Size:
1.23 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gmf.runtime.draw2d.ui >Index: src/org/eclipse/gmf/runtime/draw2d/ui/figures/WrapLabel.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.draw2d.ui/src/org/eclipse/gmf/runtime/draw2d/ui/figures/WrapLabel.java,v >retrieving revision 1.9.2.3 >diff -u -r1.9.2.3 WrapLabel.java >--- src/org/eclipse/gmf/runtime/draw2d/ui/figures/WrapLabel.java 19 Sep 2006 19:09:21 -0000 1.9.2.3 >+++ src/org/eclipse/gmf/runtime/draw2d/ui/figures/WrapLabel.java 17 Oct 2006 16:11:27 -0000 >@@ -1134,7 +1134,7 @@ > int textWidth = getTextExtents(subString, f, fontHeight).width; > Point p = getTextLocation(); > int y = p.y; >- int x = p.x; >+ int x = p.x, xRef = x; > final int wrapAlignment = getTextWrapAlignment(); > boolean isUnderlined = isTextUnderlined(); > boolean isStrikedThrough = isTextStrikedThrough(); >@@ -1150,7 +1150,8 @@ > while (tokenizer.hasMoreTokens()) { > String token = tokenizer.nextToken(); > int tokenWidth = getTextExtents(token, f, fontHeight).width; >- >+ >+ x = xRef; > switch (wrapAlignment) { > case CENTER: > x += (textWidth - tokenWidth) / 2;
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 160380
:
51723
| 52140