summaryrefslogtreecommitdiffstats
path: root/svx/source/engine3d/lathe3d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/engine3d/lathe3d.cxx')
-rw-r--r--svx/source/engine3d/lathe3d.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/svx/source/engine3d/lathe3d.cxx b/svx/source/engine3d/lathe3d.cxx
index 7869e63a988f..9d2c60c57260 100644
--- a/svx/source/engine3d/lathe3d.cxx
+++ b/svx/source/engine3d/lathe3d.cxx
@@ -182,16 +182,13 @@ SdrAttrObj* E3dLatheObj::GetBreakObj()
basegfx::B2DPolyPolygon aTransPoly(TransformToScreenCoor(aLathePoly3D));
SdrPathObj* pPathObj = new SdrPathObj(OBJ_PLIN, aTransPoly);
- if(pPathObj)
- {
- // Set Attribute
- SfxItemSet aSet(GetObjectItemSet());
+ // Set Attribute
+ SfxItemSet aSet(GetObjectItemSet());
- // Enable lines to guarantee that the object becomes visible
- aSet.Put(XLineStyleItem(com::sun::star::drawing::LineStyle_SOLID));
+ // Enable lines to guarantee that the object becomes visible
+ aSet.Put(XLineStyleItem(com::sun::star::drawing::LineStyle_SOLID));
- pPathObj->SetMergedItemSet(aSet);
- }
+ pPathObj->SetMergedItemSet(aSet);
return pPathObj;
}