summaryrefslogtreecommitdiff
path: root/libs/canvas/line.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-10-05 16:17:49 +0200
committerRobin Gareus <robin@gareus.org>2015-10-05 16:17:49 +0200
commit22b07e0233a29d9633ffa825a79503befaf2e16e (patch)
tree1d8b06056f8e12197158f5d906319767d3dedda5 /libs/canvas/line.cc
parente11ba7b79d68bc1070b170236c22123966d7bcc3 (diff)
NOOP, remove trailing tabs/whitespace.
Diffstat (limited to 'libs/canvas/line.cc')
-rw-r--r--libs/canvas/line.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/libs/canvas/line.cc b/libs/canvas/line.cc
index 8bd26b9067..49d2987e3d 100644
--- a/libs/canvas/line.cc
+++ b/libs/canvas/line.cc
@@ -43,7 +43,7 @@ void
Line::compute_bounding_box () const
{
Rect bbox;
-
+
bbox.x0 = min (_points[0].x, _points[1].x);
bbox.y0 = min (_points[0].y, _points[1].y);
bbox.x1 = max (_points[0].x, _points[1].x);
@@ -66,7 +66,7 @@ Line::render (Rect const & /*area*/, Cairo::RefPtr<Cairo::Context> context) cons
if (_outline_width <= 1.0) {
/* See Cairo FAQ on single pixel lines to understand why we add 0.5
*/
-
+
const Duple half_a_pixel (0.5, 0.5);
p0 = p0.translate (half_a_pixel);
p1 = p1.translate (half_a_pixel);
@@ -82,10 +82,10 @@ Line::set (Duple a, Duple b)
{
if (a != _points[0] || b != _points[1]) {
begin_change ();
-
+
_points[0] = a;
_points[1] = b;
-
+
_bounding_box_dirty = true;
end_change ();
}
@@ -96,23 +96,23 @@ Line::set_x (Coord x0, Coord x1)
{
if (x0 != _points[0].x || x1 != _points[1].x) {
begin_change ();
-
+
_points[0].x = x0;
_points[1].x = x1;
-
+
_bounding_box_dirty = true;
end_change ();
}
-}
+}
void
Line::set_x0 (Coord x0)
{
if (x0 != _points[0].x) {
begin_change ();
-
+
_points[0].x = x0;
-
+
_bounding_box_dirty = true;
end_change ();
}
@@ -123,9 +123,9 @@ Line::set_y0 (Coord y0)
{
if (y0 != _points[0].y) {
begin_change ();
-
+
_points[0].y = y0;
-
+
_bounding_box_dirty = true;
end_change ();
}
@@ -138,9 +138,9 @@ Line::set_x1 (Coord x1)
{
if (x1 != _points[1].x) {
begin_change ();
-
+
_points[1].x = x1;
-
+
_bounding_box_dirty = true;
end_change ();
}
@@ -151,9 +151,9 @@ Line::set_y1 (Coord y1)
{
if (y1 != _points[1].y) {
begin_change ();
-
+
_points[1].y = y1;
-
+
_bounding_box_dirty = true;
end_change ();
}