Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 160380

Summary: [NoteTextLabel] WrapLabel text not drawn properly when text alignment is centered.
Product: [Modeling] GMF-Runtime Reporter: Syed Atif <syedatif>
Component: GeneralAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: crevells
Version: 2.0   
Target Milestone: 2.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screenshot showing the problem
none
patch none

Description Syed Atif CLA 2006-10-10 17:04:25 EDT
This is a regression. It seems that multi line text is not being drawn properly when the label's text is center-aligned. See screenshot below.
Comment 1 Syed Atif CLA 2006-10-10 17:08:09 EDT
Created attachment 51723 [details]
screenshot showing the problem

the label's text is:
"this is a test
a test this is"

You can see that the second line is incorrectly placed. Furthermore, any new lines added after these two lines will have the same issue (the x position keeps increasing).
Comment 2 Syed Atif CLA 2006-10-17 12:10:49 EDT
Created attachment 52140 [details]
patch

x position needs to be reset instead of incrementing it everytime for every line.
Comment 3 Anthony Hunter CLA 2007-06-19 11:44:36 EDT
Moving to the next release, GMF 2.1. 
Comment 4 Cherie Revells CLA 2007-09-12 13:00:57 EDT
This bug has since been fixed under bug 190079.

*** This bug has been marked as a duplicate of bug 190079 ***
Comment 5 Eclipse Webmaster CLA 2010-07-19 22:00:20 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime was the original product and component for this bug