Kaydet (Commit) 19156dcc authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:datamembershadow in DXF filter

depending on which version of the DXF file format you look at, elevation
can be either group code 30 or group code 38. But since neither of these
fields is actually in use, lets just remove both until someone has an
actual use-case for them and can test against real data.

Change-Id: I4355b37c4b8513e8f9704272b269b2fe3f1c659f
Reviewed-on: https://gerrit.libreoffice.org/54104Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst a111a7ba
......@@ -59,8 +59,6 @@ bool DataMemberShadow::VisitFieldDecl(FieldDecl const * fieldDecl)
return true;
if (loplugin::isSamePathname(aFileName, SRCDIR "/include/sfx2/templatelocalview.hxx"))
return true;
if (loplugin::isSamePathname(aFileName, SRCDIR "/filter/source/graphicfilter/idxf/dxfentrd.hxx"))
return true;
if (loplugin::isSamePathname(aFileName, SRCDIR "/sc/source/ui/vba/vbastyles.hxx"))
return true;
if (loplugin::isSamePathname(aFileName, SRCDIR "/sd/inc/Outliner.hxx"))
......
......@@ -29,7 +29,6 @@ DXFBasicEntity::DXFBasicEntity(DXFEntityType eThisType)
{
eType=eThisType;
pSucc=nullptr;
fElevation=0;
fThickness=0;
nColor=256;
nSpace=0;
......@@ -49,7 +48,6 @@ void DXFBasicEntity::EvaluateGroup(DXFGroupReader & rDGR)
{
case 8: m_sLayer = rDGR.GetS(); break;
case 6: m_sLineType = rDGR.GetS(); break;
case 38: fElevation=rDGR.GetF(); break;
case 39: fThickness=rDGR.GetF(); break;
case 62: nColor=rDGR.GetI(); break;
case 67: nSpace=rDGR.GetI(); break;
......@@ -374,7 +372,6 @@ void DXFAttribEntity::EvaluateGroup(DXFGroupReader & rDGR)
DXFPolyLineEntity::DXFPolyLineEntity() : DXFBasicEntity(DXF_POLYLINE)
{
fElevation=0.0;
nFlags=0;
fSWidth=0.0;
fEWidth=0.0;
......@@ -388,7 +385,6 @@ DXFPolyLineEntity::DXFPolyLineEntity() : DXFBasicEntity(DXF_POLYLINE)
void DXFPolyLineEntity::EvaluateGroup(DXFGroupReader & rDGR)
{
switch (rDGR.GetG()) {
case 30: fElevation=rDGR.GetF(); break;
case 70: nFlags=rDGR.GetI(); break;
case 40: fSWidth=rDGR.GetF(); break;
case 41: fEWidth=rDGR.GetF(); break;
......
......@@ -64,7 +64,6 @@ public:
// commented with group codes:
OString m_sLayer; // 8
OString m_sLineType; // 6
double fElevation; // 38
double fThickness; // 39
long nColor; // 62
long nSpace; // 67
......@@ -304,7 +303,6 @@ class DXFPolyLineEntity : public DXFBasicEntity {
public:
double fElevation; // 30
long nFlags; // 70
double fSWidth; // 40
double fEWidth; // 41
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment