[gtksourceview] Fix loss of fraction part in gtk_source_print_compositor_paginate()



commit 8dc6b6c100e8ae5333d37fffab3b45f0fdebe6ef
Author: Maks Naumov <maksqwe1 ukr net>
Date:   Sat Jan 10 07:21:02 2015 -0800

    Fix loss of fraction part in gtk_source_print_compositor_paginate()
    
    Signed-off-by: Maks Naumov <maksqwe1 ukr net>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742709

 gtksourceview/gtksourceprintcompositor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourceprintcompositor.c b/gtksourceview/gtksourceprintcompositor.c
index 2fc3b09..e68c322 100644
--- a/gtksourceview/gtksourceprintcompositor.c
+++ b/gtksourceview/gtksourceprintcompositor.c
@@ -2696,7 +2696,7 @@ gtk_source_print_compositor_paginate (GtkSourcePrintCompositor *compositor,
                                        double layout_line_height;
 
                                        pango_layout_iter_get_line_extents (layout_iter, NULL, &logical_rect);
-                                       layout_line_height = logical_rect.height / PANGO_SCALE;
+                                       layout_line_height = (double) logical_rect.height / PANGO_SCALE;
 
                                        if (is_first_line &&
                                            line_is_numbered (compositor, line_number))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]