[TD] Explicitly call std::signbit
Snaps are failing because `signbit` isn't declared. Probably because of 42136ff0c48ae54edc48d1eff0cc9438f21e6786.
This commit is contained in:
@@ -876,7 +876,7 @@ void execCascadeHorizDimension(Gui::Command* cmd) {
|
||||
}
|
||||
float yMaster = validDimension[0]->Y.getValue();
|
||||
float dimDistance = activeDimAttributes.getCascadeSpacing();
|
||||
if (signbit(yMaster))
|
||||
if (std::signbit(yMaster))
|
||||
dimDistance = -dimDistance;
|
||||
for (auto dim : validDimension) {
|
||||
dim->Y.setValue(yMaster);
|
||||
@@ -942,7 +942,7 @@ void execCascadeVertDimension(Gui::Command* cmd) {
|
||||
}
|
||||
float xMaster = validDimension[0]->X.getValue();
|
||||
float dimDistance = activeDimAttributes.getCascadeSpacing();
|
||||
if (signbit(xMaster))
|
||||
if (std::signbit(xMaster))
|
||||
dimDistance = -dimDistance;
|
||||
double fontSize = Preferences::dimFontSizeMM();
|
||||
for (auto dim : validDimension) {
|
||||
@@ -1542,7 +1542,7 @@ void execCreateHorizCoordDimension(Gui::Command* cmd) {
|
||||
}
|
||||
float dimDistance = activeDimAttributes.getCascadeSpacing();
|
||||
float yMaster = allVertexes[0].point.y - dimDistance;
|
||||
if (signbit(yMaster))
|
||||
if (std::signbit(yMaster))
|
||||
dimDistance = -dimDistance;
|
||||
for (long unsigned int n = 0; n < allVertexes.size() - 1; n++) {
|
||||
TechDraw::DrawViewDimension* dim;
|
||||
@@ -1613,7 +1613,7 @@ void execCreateVertCoordDimension(Gui::Command* cmd) {
|
||||
}
|
||||
float dimDistance = activeDimAttributes.getCascadeSpacing();
|
||||
float xMaster = allVertexes[0].point.x + dimDistance;
|
||||
if (signbit(xMaster))
|
||||
if (std::signbit(xMaster))
|
||||
dimDistance = -dimDistance;
|
||||
double fontSize = Preferences::dimFontSizeMM();
|
||||
for (long unsigned int n = 0; n < allVertexes.size() - 1; n++) {
|
||||
@@ -1902,7 +1902,7 @@ void execCreateHorizChamferDimension(Gui::Command* cmd) {
|
||||
TechDraw::DrawViewDimension* dim;
|
||||
dim = _createLinDimension(cmd, objFeat, allVertexes[0].name, allVertexes[1].name, "DistanceX");
|
||||
float yMax = std::max(abs(allVertexes[0].point.y), abs(allVertexes[1].point.y)) + 7.0;
|
||||
if (signbit(allVertexes[0].point.y))
|
||||
if (std::signbit(allVertexes[0].point.y))
|
||||
yMax = -yMax;
|
||||
TechDraw::pointPair pp = dim->getLinearPoints();
|
||||
Base::Vector3d mid = (pp.first + pp.second) / 2.0;
|
||||
@@ -1969,7 +1969,7 @@ void execCreateVertChamferDimension(Gui::Command* cmd) {
|
||||
TechDraw::DrawViewDimension* dim;
|
||||
dim = _createLinDimension(cmd, objFeat, allVertexes[0].name, allVertexes[1].name, "DistanceY");
|
||||
float xMax = std::max(abs(allVertexes[0].point.x), abs(allVertexes[1].point.x)) + 7.0;
|
||||
if (signbit(allVertexes[0].point.x))
|
||||
if (std::signbit(allVertexes[0].point.x))
|
||||
xMax = -xMax;
|
||||
TechDraw::pointPair pp = dim->getLinearPoints();
|
||||
Base::Vector3d mid = (pp.first + pp.second) / 2.0;
|
||||
|
||||
Reference in New Issue
Block a user