[gimp] app: use gimp_unit_get_scaled_digits() in the Pointer Information dock.



commit 8c814a24d3ae723cb0fcf5f139b2d65c807bfa00
Author: Jehan <jehan girinstud io>
Date:   Sat May 6 22:57:43 2017 +0200

    app: use gimp_unit_get_scaled_digits() in the Pointer Information dock.
    
    gimp_unit_get_digits() won't return relevant information when using
    higher resolution. gimp_unit_get_scaled_digits() will provide the right
    amount of details relatively to the actual print resolution of the
    active image.

 app/display/gimpcursorview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpcursorview.c b/app/display/gimpcursorview.c
index dea8bda..a805990 100644
--- a/app/display/gimpcursorview.c
+++ b/app/display/gimpcursorview.c
@@ -480,7 +480,7 @@ gimp_cursor_view_format_as_unit (GimpUnit  unit,
 
   if (unit != GIMP_UNIT_PIXEL)
     {
-      unit_digits = gimp_unit_get_digits (unit);
+      unit_digits = gimp_unit_get_scaled_digits (unit, image_res);
       unit_str    = gimp_unit_get_abbreviation (unit);
     }
 


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