Fixed special character issue in Contrast-by-detail-levels, on behalf of MaWe; see issue #547

This commit is contained in:
Oliver Duis
2011-02-27 17:29:10 +01:00
parent 062a7f21a4
commit 1e9217aef8

View File

@@ -54,13 +54,13 @@ DirPyrEqualizer::DirPyrEqualizer () : Gtk::VBox(), FoldableToolPanel(this) {
for(int i = 0; i < 4; i++)
{
std::stringstream ss;
ss << i;
Glib::ustring ss;
ss = Glib::ustring::format(i);
if(i == 0)
ss << " (" << M("TP_DIRPYREQUALIZER_LUMAFINEST") << ")";
ss += Glib::ustring::compose(" (%1)", M("TP_DIRPYREQUALIZER_LUMAFINEST"));
if(i == 3)
ss << " (" << M("TP_DIRPYREQUALIZER_LUMACOARSEST") << ")";
multiplier[i] = new Adjuster (ss.str(), 0, 4, 0.01, 1.0);
ss += Glib::ustring::compose(" (%1)", M("TP_DIRPYREQUALIZER_LUMACOARSEST"));
multiplier[i] = new Adjuster (ss, 0, 4, 0.01, 1.0);
multiplier[i]->setAdjusterListener(this);
pack_start(*multiplier[i]);
}