Commit 9ff1cf26 authored by Robert Maynard's avatar Robert Maynard
Browse files

vtkAxis::GenerateSprintfLabel doesn't require VS2013 workarounds

parent 7cf77694
......@@ -1569,19 +1569,7 @@ vtkStdString vtkAxis::GenerateSprintfLabel(double value, const std::string & for
const int buffSize = 1024;
char buffer[buffSize];
// On Windows, formats with exponents have three digits by default
// whereas on other systems, exponents have two digits. Set to two
// digits on Windows for consistent behavior.
#if defined(_MSC_VER) && _MSC_VER < 1900
unsigned int oldWin32ExponentFormat = _set_output_format(_TWO_DIGIT_EXPONENT);
_snprintf(buffer, buffSize-1, format.c_str(), value);
buffer[buffSize-1] = '\0';
snprintf(buffer, buffSize, format.c_str(), value);
vtkStdString result = vtkStdString(buffer);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment