bugfix: snapping of current probes

(sorry...)
pull/1/head v0.0.9
Sebastian Held 2010-06-02 08:57:45 +02:00
parent 06901119ce
commit 96144ed3a1
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ ProcessCurrent::~ProcessCurrent()
void ProcessCurrent::DefineStartStopCoord(double* dstart, double* dstop)
{
if (Op->SnapToMesh(dstart,start)==false)
if (Op->SnapToMesh(dstart,start,true,m_start_inside)==false)
cerr << "ProcessCurrent::DefineStartStopCoord: Warning: Snapped line outside field domain!!" << endl;
if (Op->SnapToMesh(dstop,stop)==false)
if (Op->SnapToMesh(dstop,stop,true,m_stop_inside)==false)
cerr << "ProcessCurrent::DefineStartStopCoord: Warning: Snapped line outside field domain!!" << endl;
if (g_settings.showProbeDiscretization()) {