diff --git a/src/libs/vdxf/libdxfrw/libdxfrw.cpp b/src/libs/vdxf/libdxfrw/libdxfrw.cpp index 0c1e84c28..0c5a5ca98 100644 --- a/src/libs/vdxf/libdxfrw/libdxfrw.cpp +++ b/src/libs/vdxf/libdxfrw/libdxfrw.cpp @@ -365,8 +365,8 @@ bool dxfRW::writeVport(DRW_Vport *ent){ writer->writeDouble(16, ent->viewDir.x); writer->writeDouble(26, ent->viewDir.y); writer->writeDouble(36, ent->viewDir.z); - writer->writeDouble(17, ent->viewTarget.z); - writer->writeDouble(27, ent->viewTarget.z); + writer->writeDouble(17, ent->viewTarget.x); + writer->writeDouble(27, ent->viewTarget.y); writer->writeDouble(37, ent->viewTarget.z); writer->writeDouble(40, ent->height); writer->writeDouble(41, ent->width);