diff --git a/src/libs/vdxf/dxiface.cpp b/src/libs/vdxf/dxiface.cpp index df2aa7301..5ca5e7da4 100644 --- a/src/libs/vdxf/dxiface.cpp +++ b/src/libs/vdxf/dxiface.cpp @@ -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; diff --git a/src/libs/vdxf/dxiface.h b/src/libs/vdxf/dxiface.h index 9a70b8e0c..15adc34f3 100644 --- a/src/libs/vdxf/dxiface.h +++ b/src/libs/vdxf/dxiface.h @@ -133,6 +133,7 @@ private: void InitHeader(VarMeasurement varMeasurement, VarInsunits varInsunits); void InitTextstyles(); + void InitVPorts(); void InitAppId(); static std::string LocaleToISO();