View Issue Details

IDProjectCategoryView StatusLast Update
0001923JEDI VCL00 JVCL Componentspublic2004-07-04 05:50
ReporterglchapmanAssigned Touser72 
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001923: Incorrect column calculation in TJvCustomPreviewControl.UpdateSizes (?)
DescriptionI was checking out the JvPreviewDocument Demo. I loaded a 2 page RTF document, set Columns to 2, and Scale Mode to Use Rows and Cols. However, the preview only rendered with 1 column. From a quick glance at the source, I believe the problem may be this line from TJvCustomPreviewControl.UpdateSizes:

  FTotalCols := Max(Min(PageCount - 1, Options.Cols), 1);

I'm not sure why PageCount-1 is being used here; it seems to me that simply PageCount would be more appropriate. Anyway, making that change fixes the demo.

TagsNo tags attached.



2004-07-04 05:50


Fixed in CVS

Issue History

Date Modified Username Field Change
2004-07-03 09:32 glchapman New Issue
2004-07-04 05:50 user72 Status new => resolved
2004-07-04 05:50 user72 Resolution open => fixed
2004-07-04 05:50 user72 Assigned To => user72
2004-07-04 05:50 user72 Note Added: 0004679