From 7778894767c10b0bffb70a4bcfc1f40d84bbb9a3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 27 Jun 2016 17:37:11 +0100 Subject: [PATCH] Added missing break --- src/osgPlugins/dxf/dxfBlock.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osgPlugins/dxf/dxfBlock.cpp b/src/osgPlugins/dxf/dxfBlock.cpp index 8fb7f524a..da0d2f1bc 100644 --- a/src/osgPlugins/dxf/dxfBlock.cpp +++ b/src/osgPlugins/dxf/dxfBlock.cpp @@ -35,18 +35,18 @@ dxfBlock::assign(dxfFile* dxf, codeValue& cv) } else if (_currentEntity) { _currentEntity->assign(dxf, cv); } else if (cv._groupCode != 0) { - double d = cv._double; switch (cv._groupCode) { case 2: _name = s; + break; case 10: - _position.x() = d; + _position.x() = cv._double; break; case 20: - _position.y() = d; + _position.y() = cv._double; break; case 30: - _position.z() = d; + _position.z() = cv._double; break; default: // dxf garble