From 48dcf22eab270f4afb0f04663bb0562efe6342d6 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Sat, 17 May 2008 19:15:49 +0000 Subject: [PATCH] fixed issues with the profiling code. 2008-05-17 Sven Neumann * app/core/gimpimagemap.c: fixed issues with the profiling code. svn path=/trunk/; revision=25691 --- ChangeLog | 4 ++++ app/core/gimpimagemap.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 788f1f702e..88c4c73a92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-05-17 Sven Neumann + + * app/core/gimpimagemap.c: fixed issues with the profiling code. + 2008-05-17 Michael Natterer * app/tools/gimpimagemaptool.[ch]: add gimp_image_map_tool_edit_as(). diff --git a/app/core/gimpimagemap.c b/app/core/gimpimagemap.c index 016a1f6749..0379fe1188 100644 --- a/app/core/gimpimagemap.c +++ b/app/core/gimpimagemap.c @@ -82,7 +82,7 @@ struct _GimpImageMap guint idle_id; GTimer *timer; - gulong pixel_count; + guint64 pixel_count; }; @@ -571,7 +571,8 @@ gimp_image_map_apply (GimpImageMap *image_map, if (image_map->timer) { image_map->pixel_count = 0; - g_timer_reset (image_map->timer); + g_timer_start (image_map->timer); + g_timer_stop (image_map->timer); } /* Start the intermittant work procedure */