View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002114 | JEDI VCL | 00 JVCL Components | public | 2004-09-03 12:43 | 2004-09-03 13:34 |
Reporter | anonymous | Assigned To | AHUser | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0002114: JvPrvwDoc convertion bugs | ||||
Description | Hi my name is Ronaldo Augusto, I live in Brazil. Thank to do JCL and JVCL they are great!!! The unit JvPrvwDoc has two little convertion bugs. Where we found: function TJvDeviceInfo.MMToXPx(MM: single): Integer; begin Result := InchToXPx(MM * 25.4); end; function TJvDeviceInfo.MMToYPx(MM: single): Integer; begin Result := InchToYPx(MM * 25.4); end; The correct tranlation is : function TJvDeviceInfo.MMToXPx(MM: single): Integer; begin Result := InchToXPx(MM / 25.4); end; function TJvDeviceInfo.MMToYPx(MM: single): Integer; begin Result := InchToYPx(MM / 25.4); end; Just replace * for /. Thanks and good by | ||||
Tags | No tags attached. | ||||