summaryrefslogtreecommitdiff
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.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/svx/source/engine3d/lathe3d.cxx b/svx/source/engine3d/lathe3d.cxx
index 37060f96e73a..fbcfe3e44029 100644
--- a/svx/source/engine3d/lathe3d.cxx
+++ b/svx/source/engine3d/lathe3d.cxx
@@ -133,26 +133,26 @@ SdrObjectUniquePtr E3dLatheObj::DoConvertToPolyObj(bool /*bBezier*/, bool /*bAdd
void E3dLatheObj::SetPolyPoly2D(const basegfx::B2DPolyPolygon& rNew)
{
- if(maPolyPoly2D != rNew)
- {
- maPolyPoly2D = rNew;
- maPolyPoly2D.removeDoublePoints();
+ if(maPolyPoly2D == rNew)
+ return;
- if(maPolyPoly2D.count())
- {
- const basegfx::B2DPolygon rPoly(maPolyPoly2D.getB2DPolygon(0));
- sal_uInt32 nSegCnt(rPoly.count());
+ maPolyPoly2D = rNew;
+ maPolyPoly2D.removeDoublePoints();
- if(nSegCnt && !rPoly.isClosed())
- {
- nSegCnt -= 1;
- }
+ if(maPolyPoly2D.count())
+ {
+ const basegfx::B2DPolygon rPoly(maPolyPoly2D.getB2DPolygon(0));
+ sal_uInt32 nSegCnt(rPoly.count());
- GetProperties().SetObjectItemDirect(makeSvx3DVerticalSegmentsItem(nSegCnt));
+ if(nSegCnt && !rPoly.isClosed())
+ {
+ nSegCnt -= 1;
}
- ActionChanged();
+ GetProperties().SetObjectItemDirect(makeSvx3DVerticalSegmentsItem(nSegCnt));
}
+
+ ActionChanged();
}
// Get the name of the object (singular)