diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-08-14 20:10:02 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-08-14 20:10:02 +0200 |
commit | 2ec19ed78289670c90d19583ad4da7a3e3311bef (patch) | |
tree | bb2ae2027b9e0e5328594508de6e9e69b32a9b7d /svx | |
parent | 9daf7380398fb5020a3b39f2f544e9b601eb06ee (diff) |
fix warning: multi-line comment [-Werror=comment]
Change-Id: Ifec7cdefb48bca1a6e025cdd3e5f0c9285c5fb95
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeGeometry.cxx | 83 |
1 files changed, 43 insertions, 40 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx b/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx index 5e7b43757cc6..e1ca88fc9890 100644 --- a/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx @@ -388,46 +388,49 @@ static const mso_CustomShape msoTrapezoid = (SvxMSDffHandle*)mso_sptTrapezoidHandle, SAL_N_ELEMENTS( mso_sptTrapezoidHandle ) // handles }; -// The side of the enclosing square for the regular (all sides the -// same, all angles the same) octagon described below is 21600. Let's -// call that 'a'. - -// The "adjustment1" is the horizontal (or vertical) distance from a -// side of the square to the nearest vertex. Let's call that 'd'. - -// Let's call the side of the regular octagon 'b'. - -// We know a. We want d. d=(a-b)/2 - -// Pythagoras says that b^2 = 2d^2 - -// Solving for b, we get b = (sqrt(2)-1)a - - -// !------------a=21600-------! -// -// !--d--! -// x--------------x -// / \ -// / \ -// / \ -// / \ -// / \ -// x x -// ! ! -// ! ! -// ! ! -// ! ! -// ! ! -// ! ! -// x x -// \ / -// \ / -// \ / -// \ / -// \ / -// x--------------x -// +/* + + The side of the enclosing square for the regular (all sides the + same, all angles the same) octagon described below is 21600. Let's + call that 'a'. + + The "adjustment1" is the horizontal (or vertical) distance from a + side of the square to the nearest vertex. Let's call that 'd'. + + Let's call the side of the regular octagon 'b'. + + We know a. We want d. d=(a-b)/2 + + Pythagoras says that b^2 = 2d^2 + + Solving for b, we get b = (sqrt(2)-1)a + + + !------------a=21600-------! + + !--d--! + x--------------x + / \ + / \ + / \ + / \ + / \ + x x + ! ! + ! ! + ! ! + ! ! + ! ! + ! ! + x x + \ / + \ / + \ / + \ / + \ / + x--------------x + +*/ static const SvxMSDffVertPair mso_sptOctagonVert[] = // adjustment1 : 0 - 10800 { |