Ticket #2220 (closed bug: obsolete)
paragraphs-with-same-content-have-same-styles - Paragraphs that have same content have same formatting.
Reported by: | todor | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | X3 |
Component: | uncategorized | Version: | 2.0 |
Keywords: | Cc: | ||
Category: | unknown | Effort: | |
Importance: | 93 | Ticket_group: | |
Estimated Number of Hours: | 0 | Add Hours to Ticket: | 0 |
Billable?: | yes | Total Hours: | 0 |
Analysis_owners: | todor | Design_owners: | deni |
Imp._owners: | deni | Test_owners: | |
Analysis_reviewers: | deni | Changelog: | |
Design_reviewers: | meddle | Imp._reviewers: | meddle, todor |
Test_reviewers: | Analysis_score: | 5 | |
Design_score: | 4 | Imp._score: | 4 |
Test_score: | 0 |
Description
If you have several paragraphs with same style, say:
this is weird
this is not weird
this is weird
When you change the style of the first "this is weird" (make sure that the whole paragraph is changed), the second paragraph "this is weird" automatically changes its style if you try to modify the style of the second "this is wierd" paragraph, despite there are changes in the text style hud the paragraph is not changed.However if you write only one character for example "this is weird!" the style will be changed according tto what you've entered in the style hud. If you change the paragraph again to "this is weird" the miracle happens again and you have to same paragraphs.
Attachments
Change History
comment:3 Changed 15 years ago by todor
- Summary changed from paragraphs-with-same-content-are-have-same-styles - Paragraphs that have same content have same formatting. to paragraphs-with-same-content-have-same-styles - Paragraphs that have same content have same formatting.
comment:4 Changed 15 years ago by deni
- Design_owners set to deni
- Status changed from s1b_analysis_finished to s2a_design_started
- Imp._owners set to deni
- Analysis_reviewers set to deni
- Analysis_score changed from 0 to 5
comment:5 Changed 15 years ago by deni
- Status changed from s2a_design_started to s3b_implementation_finished
- If we have 2 subtexts derived from the same ImmHotText and they have the same characters (the first and the third paragraph from the bug description), their styled hashes will be the same.
- Since we cache TextLayout s in TextUtils.createAwtLayout(ImmHotText, float), this causes the problem described.
- Make HotIndexInterval implement Hashable and ImmHotText.getStyledHash() take into account the subSingleInterval field.