diff --git a/app/tools/gimpcurvestool.c b/app/tools/gimpcurvestool.c index 315a4a7c1c..73db111753 100644 --- a/app/tools/gimpcurvestool.c +++ b/app/tools/gimpcurvestool.c @@ -218,6 +218,17 @@ gimp_curves_tool_initialize (GimpTool *tool, histogram); g_object_unref (histogram); + if (gimp_drawable_get_precision (drawable) == GIMP_PRECISION_U8) + { + gimp_curve_view_set_range_x (GIMP_CURVE_VIEW (c_tool->graph), 0, 255); + gimp_curve_view_set_range_y (GIMP_CURVE_VIEW (c_tool->graph), 0, 255); + } + else + { + gimp_curve_view_set_range_x (GIMP_CURVE_VIEW (c_tool->graph), 0.0, 1.0); + gimp_curve_view_set_range_y (GIMP_CURVE_VIEW (c_tool->graph), 0.0, 1.0); + } + return TRUE; }