[TD]fix hatch fail due to missing translate method
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
|
||||
|
||||
using namespace TechDraw;
|
||||
using DU = DrawUtil;
|
||||
|
||||
App::PropertyFloatConstraint::Constraints DrawGeomHatch::scaleRange = {
|
||||
Precision::Confusion(), std::numeric_limits<double>::max(), (0.1)}; // increment by 0.1
|
||||
@@ -577,6 +578,13 @@ TopoDS_Face DrawGeomHatch::extractFace(DrawViewPart* source, int iface )
|
||||
return TopoDS::Face(temp);
|
||||
}
|
||||
|
||||
//! get a translated label string from the context (ex TaskActiveView), the base name (ex ActiveView) and
|
||||
//! the unique name within the document (ex ActiveView001), and use it to update the Label property.
|
||||
void DrawGeomHatch::translateLabel(std::string context, std::string baseName, std::string uniqueName)
|
||||
{
|
||||
Label.setValue(DU::translateArbitrary(context, baseName, uniqueName));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
PyObject *DrawGeomHatch::getPyObject()
|
||||
|
||||
Reference in New Issue
Block a user