FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix indentation. · rephorm/matplotlib@9d8bd44 · GitHub

Repository navigation

Commit 9d8bd44

Browse files
committed
Fix indentation.
svn path=/trunk/matplotlib/; revision=6897
1 parent 6f721ca commit 9d8bd44

2 files changed

Lines changed: 29 additions & 28 deletions

File tree

‎src/path_cleanup.cpp‎

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
#include "agg_py_transforms.h"
88
#include "path_converters.h"
99

10-
class PathCleanupIterator {
10+
class PathCleanupIterator
11+
{
1112
typedef agg::conv_transform<PathIterator> transformed_path_t;
1213
typedef PathNanRemover<transformed_path_t> nan_removal_t;
1314
typedef PathClipper<nan_removal_t> clipped_t;
@@ -49,36 +50,36 @@ class PathCleanupIterator {
4950
};
5051

5152
extern "C" {
52-
void*
53-
get_path_iterator(
54-
PyObject* path, PyObject* trans, int remove_nans, int do_clip,
55-
double rect[4], e_quantize_mode quantize_mode, int do_simplify)
56-
{
57-
agg::trans_affine agg_trans = py_to_agg_transformation_matrix(trans, false);
58-
agg::rect_base<double> clip_rect(rect[0], rect[1], rect[2], rect[3]);
53+
void*
54+
get_path_iterator(
55+
PyObject* path, PyObject* trans, int remove_nans, int do_clip,
56+
double rect[4], e_quantize_mode quantize_mode, int do_simplify)
57+
{
58+
agg::trans_affine agg_trans = py_to_agg_transformation_matrix(trans, false);
59+
agg::rect_base<double> clip_rect(rect[0], rect[1], rect[2], rect[3]);
5960

60-
PathCleanupIterator* pipeline = new PathCleanupIterator(
61-
path, agg_trans, remove_nans != 0, do_clip != 0,
62-
clip_rect, quantize_mode, do_simplify != 0);
61+
PathCleanupIterator* pipeline = new PathCleanupIterator(
62+
path, agg_trans, remove_nans != 0, do_clip != 0,
63+
clip_rect, quantize_mode, do_simplify != 0);
6364

64-
return (void*)pipeline;
65-
}
65+
return (void*)pipeline;
66+
}
6667

67-
unsigned
68-
get_vertex(void* pipeline, double* x, double* y)
69-
{
70-
PathCleanupIterator* pipeline_iter = (PathCleanupIterator*)pipeline;
68+
unsigned
69+
get_vertex(void* pipeline, double* x, double* y)
70+
{
71+
PathCleanupIterator* pipeline_iter = (PathCleanupIterator*)pipeline;
7172

72-
unsigned code = pipeline_iter->vertex(x, y);
73-
return code;
74-
}
73+
unsigned code = pipeline_iter->vertex(x, y);
74+
return code;
75+
}
7576

76-
void
77-
free_path_iterator(void* pipeline)
78-
{
79-
PathCleanupIterator* pipeline_iter = (PathCleanupIterator*)pipeline;
77+
void
78+
free_path_iterator(void* pipeline)
79+
{
80+
PathCleanupIterator* pipeline_iter = (PathCleanupIterator*)pipeline;
8081

81-
delete pipeline_iter;
82-
}
82+
delete pipeline_iter;
83+
}
8384
}
8485

‎src/path_cleanup.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ enum e_quantize_mode
1212

1313
void*
1414
get_path_iterator(
15-
PyObject* path, PyObject* trans, int remove_nans, int do_clip,
16-
double rect[4], e_quantize_mode quantize_mode, int do_simplify);
15+
PyObject* path, PyObject* trans, int remove_nans, int do_clip,
16+
double rect[4], e_quantize_mode quantize_mode, int do_simplify);
1717

1818
unsigned
1919
get_vertex(void* pipeline, double* x, double* y);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL