diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2022-11-02 18:13:26 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-11-02 22:46:25 +0100 |
commit | 26fef1f99185c9ec4f0278e3aa6079011a164cba (patch) | |
tree | 488d9c4ad21e61f2b91459328ec6f645d5024b86 /drawinglayer | |
parent | d60d9be3a01dac4a0758f251173d8c657c2a7b64 (diff) |
Fix typos
Change-Id: I097aec3699f668c60a7cb18e2ad412a45ce43ad3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142182
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/polygonprimitive2d.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drawinglayer/source/primitive2d/polygonprimitive2d.cxx b/drawinglayer/source/primitive2d/polygonprimitive2d.cxx index a91e87b38c1c..2fdb535f61d9 100644 --- a/drawinglayer/source/primitive2d/polygonprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/polygonprimitive2d.cxx @@ -350,7 +350,7 @@ PolygonStrokePrimitive2D::getB2DRange(const geometry::ViewInformation2D& rViewIn // - expanding by more (like sqrt(2) * 0.5 * LineWidth) immediately extends the size // of e.g. geometry converted to PNG, plus many similar cases that cannot be thought // of in advance. - // This means that converting those thoght-experiment examples in (4) will and do lead + // This means that converting those thought-experiment examples in (4) will and do lead // to bigger e.g. Bitmap conversion(s), not avoiding but painting the free space. That // could only be done by correctly and fully decomposing the geometry, including // stroke, and accepting the cost... @@ -378,14 +378,14 @@ PolygonStrokePrimitive2D::getB2DRange(const geometry::ViewInformation2D& rViewIn // other PrimitiveProcessors. Maybe not by the VclPixelProcessor2D/VclProcessor2D // since it handles this primitive directly - not even sure for all cases. // Sooner or later another PrimitiveProcessor will re-use this wrong temporary - // decompositon, and as an error, a non-stroked line will be painted/used. + // decomposition, and as an error, a non-stroked line will be painted/used. // (4) The B2DRange is not strictly defined as minimal bound for the geometry, // but it should be as small/tight as possible. Making it larger risks more // area to be invalidated (repaint) and processed (all geometric stuff,l may // include future and existing exports to other formats which are or will be // implemented as PrimitiveProcessor). It is easy to imagine cases with much // too large B2DRange - a line with a pattern that would solve to a single - // small start-rectange and rest is empty, or a circle with a stroke that + // small start-rectangle and rest is empty, or a circle with a stroke that // makes only a quarter of it visible. // // The reason to do this is speed, what is a good argument. But speed should @@ -404,7 +404,7 @@ PolygonStrokePrimitive2D::getB2DRange(const geometry::ViewInformation2D& rViewIn // the buffered decomposition will not be harmed. // Disadvantage: Same as (a), decomposition will be potentially done repeatedly // (c) Use a temporary, local PolygonStrokePrimitive2D and buffer B2DRange - // locally for this Prmitive. Due to (1)/(2) this cannot change, so + // locally for this Primitive. Due to (1)/(2) this cannot change, so // when calculated once it is totally legal to use it. // // Thus here I would use (c): It accepts the disadvantages of (4) over speed, but @@ -446,7 +446,7 @@ PolygonStrokePrimitive2D::getB2DRange(const geometry::ViewInformation2D& rViewIn // - either use maBufferedRange, additionally remember view-dependent // factor & reset if that changes // - or do not buffer for hairline -> not really needed, the range is buffered - // in the B2DPolygon, no decompostion is needed and a simple grow is cheap + // in the B2DPolygon, no decomposition is needed and a simple grow is cheap basegfx::B2DRange aHairlineRange = getB2DPolygon().getB2DRange(); if (!aHairlineRange.isEmpty()) |