Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003089 [JEDI VCL] 00 JVCL Components minor always 2005-07-12 10:46 2006-03-31 06:22
Reporter anonymous View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   Product Version 3.00
Summary 0003089: Justify Alignment in JvRichEdit
Description Let me explain the problem.
If I change the Paragraph's alignment to justify... when I save to file and reload the file again (using Lines.SaveToFile and Lines.LoadFromFile), the Paragraph comes back without justifing alignment.
Well, looking the JvRichEdit.pas file, I saw in the TJvParaAttributes.SetAlignment procedure this command:

if Value = paJustify then
   FRichEdit.NeedAdvancedTypography;

I just found one ocurrence with this command. In debug mode, the SetAlignment isn't called when I Lines.LoadFromFile is used.
I did a "poor" test... What I did was to put this command:

FRichEdit.NeedAdvancedTypography

... in LoadFromFile procedure. After this change it worked.

As I said, this is just a "poor" change. I don't know if this is the rigth way to correct this issue.
The same thing happens when LoadFromStream is called!

Could somebody with more experience take a look in this issue, please ?

Best Regards
Thiago A. Flessak
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007555)
remkobonte (developer)
2005-07-12 12:54

Workaround is to set property AutoAdvancedTypography to False and AdvancedTypography to True (both are properties of TJvRichEdit)
(0008794)
obones (administrator)
2006-03-31 06:22

Well, that seems enough to me.
If not, please create a NEW issue with a demo application.

- Issue History
Date Modified Username Field Change
2005-07-12 10:46 anonymous New Issue
2005-07-12 12:54 remkobonte Note Added: 0007555
2006-03-31 06:22 obones Status new => resolved
2006-03-31 06:22 obones Resolution open => fixed
2006-03-31 06:22 obones Assigned To => obones
2006-03-31 06:22 obones Note Added: 0008794


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker