Skip to content

Commit

Permalink
relaxed polynomial template degree restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
julmb committed Feb 18, 2014
1 parent c07d6a2 commit aa835eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/Kurve/Kurve/Components/CurveComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ void ChangePolynomialtemplateDegree(int newDegree)
{
if (Selected)
{
if (newDegree < 4)
if (newDegree < 1)
{
Console.WriteLine("polynomial template degree cannot be less than 4");
Console.WriteLine("polynomial template degree cannot be less than 1");

return;
}
Expand Down
4 changes: 2 additions & 2 deletions source/Kurve/Kurve/Components/RootComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ void DoExport(IEnumerable<CurveOptimizer> optimizers, String filename)
int width, height;
parentWindow.GetSize(out width, out height);

Svg.Scene
Svg.Document
(
new Orthotope2Double(0, 0, width, height),
new Orthotope2Double(0, width, 0, height),
from optimizer in optimizers
from path in optimizer.GetSvgPaths()
select path
Expand Down

0 comments on commit aa835eb

Please sign in to comment.