diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-08-19 21:01:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-08-19 21:01:28 +0100 |
| commit | 9a2b45caa81d8fb056802dfe3c25f214e808ffdf (patch) | |
| tree | 1cead4781d2a8546c3ba8b8f936d18bf8e8a6403 /src/wx/colour_conversion_editor.cc | |
| parent | aa3565457977dabb658f41c71e14151473b91f07 (diff) | |
Use SafeStringStream instead of std::stringstream to try to fix random crashes on OS X.
Diffstat (limited to 'src/wx/colour_conversion_editor.cc')
| -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 6617b66d6..4a1e5074f 100644 --- a/src/wx/colour_conversion_editor.cc +++ b/src/wx/colour_conversion_editor.cc @@ -21,12 +21,12 @@ #include <wx/spinctrl.h> #include <wx/gbsizer.h> #include "lib/colour_conversion.h" +#include "lib/safe_stringstream.h" #include "wx_util.h" #include "colour_conversion_editor.h" using std::string; using std::cout; -using std::stringstream; using boost::shared_ptr; using boost::lexical_cast; @@ -110,7 +110,7 @@ ColourConversionEditor::set (ColourConversion conversion) _input_gamma_linearised->SetValue (conversion.input_gamma_linearised); for (int i = 0; i < 3; ++i) { for (int j = 0; j < 3; ++j) { - stringstream s; + SafeStringStream s; s.setf (std::ios::fixed, std::ios::floatfield); s.precision (7); s << conversion.matrix (i, j); |
