View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001496 | JEDI VCL | 00 JVCL Components | public | 2004-03-19 02:49 | 2004-03-23 07:05 |
Reporter | maxp | Assigned To | user72 | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0001496: JvHLEditor highlighter bug | ||||
Description | JvHLEditor incorrectly highlights pascal comments when JvHlEditor.Lines.Assign(List) procedure is used. To reproduce this bug, create form with JvHlEditor and button. Place the code in Botton.OnClick: procedure TForm1.Button1Click(Sender: TObject); var L: TStringList; begin L := TStringList.Create; try L.Text := '(*'^M^J + 'procedure test;'^M^J + 'begin'^M^J + 'end;'^M^J + '*)'^M^J + 'procedure test2;'^M^J + 'begin'^M^J + 'end;'; JvHlEditor1.Lines.Assign(L); finally FreeAndNil(L); end; end; Run the application and press the button. Text inside (* *) looks like uncommented. | ||||
Additional Information | Changing JvHlEditor1.Lines.Assign(L) to JvHlEditor1.Lines.Text := L.Text fixes this odd behaviour. Probably bug is located in "JvHlEditor1.Lines.Assign". | ||||
Tags | No tags attached. | ||||
|
Try changing the following method in JvEditor.pas (changes in bold): procedure TJvEditorStrings.Assign(Source: TPersistent); begin JvEditor.BeginUpdate; try inherited Assign(Source); JvEditor.NotUndoable; JvEditor.TextAllChanged; finally JvEditor.EndUpdate; end; end; Does that fix it? edited on: 03-21-04 03:06 |
|
You are right, adding (**)JvEditor.TextAllChanged;(**) after (**)JvEditor.TextAllChanged;(**) in TJvEditorStrings.Assign fixed this bug. |
|
Fixed in CVS |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-03-19 02:49 | maxp | New Issue | |
2004-03-20 01:50 |
|
Note Added: 0003404 | |
2004-03-20 01:50 |
|
Status | new => feedback |
2004-03-21 03:06 |
|
Note Edited: 0003404 | |
2004-03-22 04:00 | maxp | Note Added: 0003422 | |
2004-03-22 21:54 |
|
Status | feedback => assigned |
2004-03-22 21:54 |
|
Assigned To | => user72 |
2004-03-23 07:05 |
|
Status | assigned => resolved |
2004-03-23 07:05 |
|
Resolution | open => fixed |
2004-03-23 07:05 |
|
Note Added: 0003446 |