diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-08-18 21:18:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-08-18 21:18:12 +0100 |
| commit | e4b30a67b690755a3cd44678bd0671f06af8a36e (patch) | |
| tree | fbd269592302f0cc09a6af0ff7ab61c97e51b260 /src | |
| parent | 038a727320d16d7265b7ceab86612a29f44a8c78 (diff) | |
Tweak colour matrix precision display.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/colour_conversion_editor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/colour_conversion_editor.cc b/src/wx/colour_conversion_editor.cc index 091028dcd..823f5ad38 100644 --- a/src/wx/colour_conversion_editor.cc +++ b/src/wx/colour_conversion_editor.cc @@ -51,7 +51,7 @@ ColourConversionEditor::ColourConversionEditor (wxWindow* parent) ++r; wxClientDC dc (parent); - wxSize size = dc.GetTextExtent (wxT ("-0.123456789012345678")); + wxSize size = dc.GetTextExtent (wxT ("-0.12345678901")); size.SetHeight (-1); wxTextValidator validator (wxFILTER_INCLUDE_CHAR_LIST); @@ -112,7 +112,7 @@ ColourConversionEditor::set (ColourConversion conversion) for (int j = 0; j < 3; ++j) { stringstream s; s.setf (std::ios::fixed, std::ios::floatfield); - s.precision (14); + s.precision (7); s << conversion.matrix (i, j); _matrix[i][j]->SetValue (std_to_wx (s.str ())); } |
