From 36226cfd0acf9d7e60f0dd41050c3c543cbd4917 Mon Sep 17 00:00:00 2001 From: luz paz Date: Fri, 1 Jul 2022 19:58:55 -0400 Subject: [PATCH] Fix various typos in libs/canvas --- libs/canvas/canvas/interpolated_curve.h | 4 ++-- libs/canvas/canvas/table.h | 2 +- libs/canvas/curve.cc | 2 +- libs/canvas/framed_curve.cc | 2 +- libs/canvas/table.cc | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/canvas/canvas/interpolated_curve.h b/libs/canvas/canvas/interpolated_curve.h index 3a8706a6bf..eac670a022 100644 --- a/libs/canvas/canvas/interpolated_curve.h +++ b/libs/canvas/canvas/interpolated_curve.h @@ -96,7 +96,7 @@ protected: double x1 = vertices[0].x - dx; double y1 = vertices[0].y - dy; - // Actaully create the start point from the extrapolated values. + // Actually create the start point from the extrapolated values. Duple start (x1, y1); // Repeat for the end control point. @@ -168,7 +168,7 @@ private: * points spaced uniformly along the resulting Catmull-Rom curve. * * @param points The list of control points, leading and ending with a - * coordinate that is only used for controling the spline and is not visualized. + * coordinate that is only used for controlling the spline and is not visualized. * @param index The index of control point p0, where p0, p1, p2, and p3 are * used in order to create a curve between p1 and p2. * @param points_per_segment The total number of uniformly spaced interpolated diff --git a/libs/canvas/canvas/table.h b/libs/canvas/canvas/table.h index 3209af5e93..debc31676b 100644 --- a/libs/canvas/canvas/table.h +++ b/libs/canvas/canvas/table.h @@ -81,7 +81,7 @@ public: void attach (Item*, uint32_t upper_left_x, uint32_t upper_right_y, PackOptions row_options = PackOptions (0), PackOptions col_options = PackOptions (0), FourDimensions padding = FourDimensions (0.)); void attach_with_span (Item*, uint32_t upper_left_x, uint32_t upper_left_y, uint32_t hspan, uint32_t vspan, PackOptions row_options = PackOptions (0), PackOptions col_options = PackOptions (0), FourDimensions padding = FourDimensions (0.)); - void dettach (Item*); + void detach (Item*); void set_row_size (uint32_t row, Distance); void set_col_size (uint32_t row, Distance); diff --git a/libs/canvas/curve.cc b/libs/canvas/curve.cc index 180940fbb8..3b3b5a05ba 100644 --- a/libs/canvas/curve.cc +++ b/libs/canvas/curve.cc @@ -46,7 +46,7 @@ Curve::Curve (Item* parent) /** When rendering the curve, we will always draw a fixed number of straight * line segments to span the x-axis extent of the curve. More segments: - * smoother visual rendering. Less rendering: closer to a visibily poly-line + * smoother visual rendering. Less rendering: closer to a visibly poly-line * render. */ void diff --git a/libs/canvas/framed_curve.cc b/libs/canvas/framed_curve.cc index cc6334ac72..f7696fa15c 100644 --- a/libs/canvas/framed_curve.cc +++ b/libs/canvas/framed_curve.cc @@ -45,7 +45,7 @@ FramedCurve::FramedCurve (Item* parent) /** When rendering the curve, we will always draw a fixed number of straight * line segments to span the x-axis extent of the curve. More segments: - * smoother visual rendering. Less rendering: closer to a visibily poly-line + * smoother visual rendering. Less rendering: closer to a visibly poly-line * render. */ void diff --git a/libs/canvas/table.cc b/libs/canvas/table.cc index c0f05b2d46..f7c0200997 100644 --- a/libs/canvas/table.cc +++ b/libs/canvas/table.cc @@ -345,7 +345,7 @@ Table::compute (Rect const & within) } if (row_homogenous) { - /* reset total height using the heighest, multiplied by the + /* reset total height using the highest, multiplied by the number of rows, since they wll all be the same height. the values before we do this are cumulative, and do not (necessarily) reflect homogeneity @@ -402,7 +402,7 @@ Table::compute (Rect const & within) * iterate. Allocate expanders the per-cell size plus the extra for * expansion. Allocate shrinkers/default just the per-cell size. * - * If the natural size if greated than the allocated size, find the + * If the natural size if greater than the allocated size, find the * difference, divide it by the number of shrinking items per * (row|col). Divide the total size by the number of (rows|cols), then * iterate. Allocate shrinkers the per-cell size minus the excess for