Fix DXF vport. AutoCAD complains about clipped view.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-07-16 19:53:15 +03:00
parent 8c7f9e2558
commit 5015dda5dd
2 changed files with 10 additions and 0 deletions

View File

@ -26,6 +26,7 @@ dx_iface::dx_iface(const std::string &file, DRW::Version v, VarMeasurement varMe
{
InitHeader(varMeasurement, varInsunits);
InitTextstyles();
InitVPorts();
InitAppId();
}
@ -301,6 +302,14 @@ void dx_iface::InitTextstyles()
cData.textStyles.push_back(style);
}
void dx_iface::InitVPorts()
{
DRW_Vport vport;
vport.name = "*ACTIVE";
vport.height = 297.0;
cData.VPorts.push_back(vport);
}
void dx_iface::InitAppId()
{
DRW_AppId ai;

View File

@ -133,6 +133,7 @@ private:
void InitHeader(VarMeasurement varMeasurement, VarInsunits varInsunits);
void InitTextstyles();
void InitVPorts();
void InitAppId();
static std::string LocaleToISO();