From 5015dda5dd8014ce0fd41d09d663c1cd2f410da8 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Jul 2018 19:53:15 +0300 Subject: [PATCH] Fix DXF vport. AutoCAD complains about clipped view. --HG-- branch : develop --- src/libs/vdxf/dxiface.cpp | 9 +++++++++ src/libs/vdxf/dxiface.h | 1 + 2 files changed, 10 insertions(+) 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();