From 015d1d8af02b5b5de3d0a36f8b4517449c774f37 Mon Sep 17 00:00:00 2001 From: Oliver Duis Date: Tue, 24 Jul 2012 07:59:04 +0200 Subject: [PATCH] Lab display range in navigator see issue 1478 --- rtgui/navigator.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rtgui/navigator.cc b/rtgui/navigator.cc index 8f3c7eba1..2418c19a2 100644 --- a/rtgui/navigator.cc +++ b/rtgui/navigator.cc @@ -101,10 +101,9 @@ void Navigator::pointerMoved (bool validPos, Glib::ustring profile, int x, int y //rgb2lab (r, g, b, LAB_l, LAB_a, LAB_b); rgb2lab (profile, r, g, b, LAB_l, LAB_a, LAB_b); // TODO: Really sure this function works? - LAB_A->set_text (Glib::ustring::compose (M("NAVIGATOR_LAB_A_VALUE"), Glib::ustring::format(std::fixed, std::setprecision(1), LAB_a*100.f/255.f) + Glib::ustring("%"))); - LAB_B->set_text (Glib::ustring::compose (M("NAVIGATOR_LAB_B_VALUE"), Glib::ustring::format(std::fixed, std::setprecision(1), LAB_b*100.f/255.f) + Glib::ustring("%"))); - LAB_L->set_text (Glib::ustring::compose (M("NAVIGATOR_LAB_L_VALUE"), Glib::ustring::format(std::fixed, std::setprecision(1), LAB_l*100.f/255.f) + Glib::ustring("%"))); - + LAB_A->set_text (Glib::ustring::compose (M("NAVIGATOR_LAB_A_VALUE"), LAB_a)); + LAB_B->set_text (Glib::ustring::compose (M("NAVIGATOR_LAB_B_VALUE"), LAB_b)); + LAB_L->set_text (Glib::ustring::compose (M("NAVIGATOR_LAB_L_VALUE"), LAB_l)); } }