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:
committed by
Stephanie Anderl
parent
c3414ea9c9
commit
9329af37f1
@@ -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))
|
||||
|
Reference in New Issue
Block a user