[gtksourceview/gnome-3-14] Fix loss of fraction part in gtk_source_print_compositor_paginate()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-14] Fix loss of fraction part in gtk_source_print_compositor_paginate()
- Date: Sun, 11 Jan 2015 21:18:09 +0000 (UTC)
commit 20ebb81b3b289c5bbfe7b172ee90ddd32c63971f
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 77af804..4b13844 100644
--- a/gtksourceview/gtksourceprintcompositor.c
+++ b/gtksourceview/gtksourceprintcompositor.c
@@ -2709,7 +2709,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]