Commit c13c8d19 authored by Alessandro Genova's avatar Alessandro Genova

Resolve last compiler warning

parent 14b6fb2c
......@@ -1433,14 +1433,14 @@ vtkStdString vtkAxis::GenerateSimpleLabel(double val)
# if defined(_WIN32)
// Hacky fix for the Precision = 0 bug on MSVC compilers
if (Precision == 0)
if (this->Precision == 0 && this->Notation == SCIENTIFIC_NOTATION)
{
vtksys::RegularExpression regExp2("[+-]?[0-9]+\\.[0-9]+");
if (regExp2.find(result))
{
vtkStdString tmp(result);
int val = vtkMath::Round(stof(regExp2.match(0)));
result = std::to_string(val);
int num = vtkMath::Round(stof(regExp2.match(0)));
result = std::to_string(num);
vtkStdString::iterator it = tmp.begin();
for (int i = 0; i < regExp2.end() - regExp2.start(); ++i)
{
......
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