Skip to content
Snippets Groups Projects
Commit 7eb03612 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

oixy segfaulted when nz=0

parent 15dcc355
No related branches found
No related tags found
No related merge requests found
- Use plot.Y.force in 2d plotting
- Use wx, wy, wh in setting ticks and tacks for easier editing of PS file
- Correct ticks and tacks for small log range
- correct handling of Z in oixy
Release 2.4.0b of 21apr17:
......
......@@ -352,6 +352,8 @@ void NOperate::IntXY(string mode)
}
while (const COld* fin = fiter.nextD()) {
int nz = fin->ZCo.size();
POld fout(fin->new_POld());
string lin = S("oi") + mode + " " + S(icolx) + " " + S(icoly);
if (with_d)
......@@ -360,12 +362,13 @@ void NOperate::IntXY(string mode)
fout->xco = CCoord("x", "");
fout->yco = CCoord("y", "");
fout->ZCo.pop_back();
int nz = fin->ZCo.size();
if (nz)
fout->ZCo.pop_back();
PSpec sout(new CSpec);
sout->z = fin->V[0]->z;
sout->z.pop_back();
if (nz)
sout->z.pop_back();
for (int j = 0; j < fin->nJ(); j++) {
int n = fin->nPts(j);
......@@ -382,7 +385,8 @@ void NOperate::IntXY(string mode)
fout->V.push_back(move(sout));
sout = PSpec(new CSpec);
sout->z = fin->V[j+1]->z;
sout->z.pop_back();
if (nz)
sout->z.pop_back();
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment