diff --git a/src/libs/vdxf/libdxfrw/drw_objects.cpp b/src/libs/vdxf/libdxfrw/drw_objects.cpp index 48bc099f5..267085c34 100644 --- a/src/libs/vdxf/libdxfrw/drw_objects.cpp +++ b/src/libs/vdxf/libdxfrw/drw_objects.cpp @@ -488,7 +488,7 @@ void DRW_Vport::parseCode(int code, dxfReader *reader){ height = reader->getDouble(); break; case 41: - ratio = reader->getDouble(); + width = reader->getDouble(); break; case 42: lensHeight = reader->getDouble(); diff --git a/src/libs/vdxf/libdxfrw/drw_objects.h b/src/libs/vdxf/libdxfrw/drw_objects.h index 2865f2b60..ad213e47d 100644 --- a/src/libs/vdxf/libdxfrw/drw_objects.h +++ b/src/libs/vdxf/libdxfrw/drw_objects.h @@ -466,7 +466,7 @@ public: viewDir(), viewTarget(), height(), - ratio(), + width(), lensHeight(), frontClip(), backClip(), @@ -492,7 +492,7 @@ public: center.y = -0.16; viewDir.z = 1; height = 5.13732; - ratio = 2.4426877; + width = 2.4426877; lensHeight = 50; frontClip = backClip = snapAngle = twistAngle = 0.0; viewMode = snap = grid = snapStyle = snapIsopair = 0; @@ -516,7 +516,7 @@ public: DRW_Coord viewDir; /*!< view direction from target point, code 16, 26 & 36 */ DRW_Coord viewTarget; /*!< view target point, code 17, 27 & 37 */ double height; /*!< view height, code 40 */ - double ratio; /*!< viewport aspect ratio, code 41 */ + double width; /*!< view width, code 41 */ double lensHeight; /*!< lens height, code 42 */ double frontClip; /*!< front clipping plane, code 43 */ double backClip; /*!< back clipping plane, code 44 */ diff --git a/src/libs/vdxf/libdxfrw/libdxfrw.cpp b/src/libs/vdxf/libdxfrw/libdxfrw.cpp index b24e6a987..110657c94 100644 --- a/src/libs/vdxf/libdxfrw/libdxfrw.cpp +++ b/src/libs/vdxf/libdxfrw/libdxfrw.cpp @@ -358,7 +358,7 @@ bool dxfRW::writeVport(DRW_Vport *ent){ writer->writeDouble(27, ent->viewTarget.z); writer->writeDouble(37, ent->viewTarget.z); writer->writeDouble(40, ent->height); - writer->writeDouble(41, ent->ratio); + writer->writeDouble(41, ent->width); writer->writeDouble(42, ent->lensHeight); writer->writeDouble(43, ent->frontClip); writer->writeDouble(44, ent->backClip);