Fix crash when setting graph options to very large numbers (#904)

* fix crash

* Fixes

* Update build/pipelines/templates/build-app-internal.yaml

Co-Authored-By: Stephanie Anderl <46726333+sanderl@users.noreply.github.com>

Co-authored-by: Stephanie Anderl <46726333+sanderl@users.noreply.github.com>
This commit is contained in:
Pepe Rivera
2020-01-08 15:06:26 -08:00
committed by Stephanie Anderl
parent c3414ea9c9
commit 9329af37f1
4 changed files with 33 additions and 8 deletions

View File

@@ -179,10 +179,19 @@ namespace GraphControl::DX
int formulaId = -1;
float nearestPointLocationX, nearestPointLocationY;
float nearestPointValueX, nearestPointValueY;
double nearestPointValueX, nearestPointValueY, rhoValueOut, thetaValueOut, tValueOut;
if (renderer->GetClosePointData(
trackPoint.X, trackPoint.Y, formulaId, nearestPointLocationX, nearestPointLocationY, nearestPointValueX, nearestPointValueY)
trackPoint.X,
trackPoint.Y,
formulaId,
nearestPointLocationX,
nearestPointLocationY,
nearestPointValueX,
nearestPointValueY,
rhoValueOut,
thetaValueOut,
tValueOut)
== S_OK)
{
if (!isnan(nearestPointLocationX) && !isnan(nearestPointLocationY))