diff options
Diffstat (limited to 'pcl/pglabel.c')
-rw-r--r-- | pcl/pglabel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pcl/pglabel.c b/pcl/pglabel.c index 8b7a101a3..6475792a2 100644 --- a/pcl/pglabel.c +++ b/pcl/pglabel.c @@ -646,9 +646,9 @@ hpgl_print_char( scale.y = -(ratio * inches_2_plu(1.0 / font->resolution.y)); } } else { - scale.x = hpgl_points_2_plu(pgls, pl_fp_pitch_cp(&pfs->params) / - pl_fp_pitch_cp(&pfs->font->params) ); - scale.y = scale.x; + double ratio = (double)pl_fp_pitch_cp(&pfs->params) / + pl_fp_pitch_cp(&pfs->font->params); + scale.y = scale.x = hpgl_points_2_plu(pgls, ratio); } } else { |