diff --git a/trunk/Units/MMLCore/dtmutil.pas b/trunk/Units/MMLCore/dtmutil.pas index f84ea8c..c5c3e65 100644 --- a/trunk/Units/MMLCore/dtmutil.pas +++ b/trunk/Units/MMLCore/dtmutil.pas @@ -37,7 +37,8 @@ Procedure PrintpDTM(aDTM : pDTM); procedure initdtm(out d: pdtm; len: integer); function ValidMainPointBox(var dtm: pDTM; const x1, y1, x2, y2: Integer): TBox; -function ValidMainPointBoxRotated(var dtm: pDTM; const x1, y1, x2, y2: Integer): TBox; +Function ValidMainPointBoxRotated(var dtm: pDTM; const x1, y1, x2, y2: Integer; + sAngle, eAngle, aStep: Extended): TBox; function DTMConsistent(var dtm: pdtm): boolean; procedure NormalizeDTM(var dtm: pdtm); @@ -238,7 +239,8 @@ begin Result.y2 := y2 - b.y2; end; -Function ValidMainPointBoxRotated(var dtm: pDTM; const x1, y1, x2, y2: Integer): TBox; +Function ValidMainPointBoxRotated(var dtm: pDTM; const x1, y1, x2, y2: Integer; + sAngle, eAngle, aStep: Extended): TBox; var i, d: Integer; diff --git a/trunk/Units/MMLCore/finder.pas b/trunk/Units/MMLCore/finder.pas index 312bf1e..63e66c3 100644 --- a/trunk/Units/MMLCore/finder.pas +++ b/trunk/Units/MMLCore/finder.pas @@ -2069,7 +2069,7 @@ begin // Get the area we should search in for the Main Point. //writeln(Format('%d, %d, %d, %d', [x1,y1,x2,y2])); - MA := ValidMainPointBoxRotated(DTM, x1, y1, x2, y2); + MA := ValidMainPointBoxRotated(DTM, x1, y1, x2, y2, sAngle, eAngle, aStep); //writeln(Format('%d, %d, %d, %d', [MA.x1,MA.y1,MA.x2,MA.y2])); DefaultOperations(MA.x1, MA.y1, MA.x2, MA.y2);