Skip to content

Commit

Permalink
#16605: Compilation error in lib2geom/path.h
Browse files Browse the repository at this point in the history
git-svn-id: svn://scribus.net/trunk/Scribus@24687 11d20701-8431-0410-a711-e3c959e3b870
  • Loading branch information
Jean Ghali committed Aug 4, 2021
1 parent 73dd1ec commit 34dee81
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions scribus/third_party/lib2geom/path.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,15 @@ class BezierCurve : public Curve {

D2<SBasis> toSBasis() const {return inner.toSBasis(); }

protected:
BezierCurve(Point c[]) {
Coord x[order+1], y[order+1];
for(unsigned i = 0; i <= order; i++) {
x[i] = c[i][X]; y[i] = c[i][Y];
}
inner = Bezier(x, y);
}
// #16605: does not seem used at triggers build error with clang 12.0.1
//protected:
// BezierCurve(Point c[]) {
// Coord x[order+1], y[order+1];
// for(unsigned i = 0; i <= order; i++) {
// x[i] = c[i][X]; y[i] = c[i][Y];
// }
// inner = Bezier(x, y);
// }
};

// BezierCurve<0> is meaningless; specialize it out
Expand Down

0 comments on commit 34dee81

Please sign in to comment.