Commit bb543865 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX #736] added missing semicolon in string

... and added functionality to drop last semicolon
parent 163b7040
......@@ -205,7 +205,7 @@ namespace PROPERTY_TYPE_HELPER
double height = tf.getHeight( BOX, i );
WColor c = tf.getColor( BOX, i );
out << "c:" << isoX << ":" << isoY << ":" << width << ":" << height << ":"
<< c[ 0 ] << ":" << c[ 1 ] << ":" << c[ 2 ] << ":" << c[ 3 ];
<< c[ 0 ] << ":" << c[ 1 ] << ":" << c[ 2 ] << ":" << c[ 3 ] << ";";
}
size_t ntWidgets = tf.numTriangleWidgets();
for( size_t i = 0; i < ntWidgets; i++ )
......@@ -220,6 +220,14 @@ namespace PROPERTY_TYPE_HELPER
<< c[0] << ":" << c[1] << ":" << c[2] << ":" << c[3] << ":" << points[0].x << ":" << points[0].y << ":"
<< points[1].x << ":" << points[1].y << ":" << points[2].x << ":" << points[2].y << ":" << ";";
}
return out.str();
// remove last semicolon
std::string cleanResult = out.str();
if( cleanResult.back() == ';' )
{
cleanResult.pop_back();
}
return cleanResult;
}
}
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