Skip to content

Commit a85ad54

Browse files
committed
Fixes a crash for when you switch from annulus to regular
and then back to annulus.
1 parent 08a48cb commit a85ad54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zernikeprocess.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ cv::Mat zernikeProcess::null_unwrapped(wavefront&wf, std::vector<double> zerns,
766766
// annular wave fronts already have this made elsewhere.
767767
if (!md->m_useAnnular){
768768
m_rhoTheta = rhotheta(nx ,wf.m_outside.m_radius, midx,midy, &wf);
769+
if (m_lastusedAnnulus)
770+
m_needsInit=true;
769771
}
770772
// now iterate over those points
771773
for (unsigned int i = 0; i < m_row.size(); ++i){

0 commit comments

Comments
 (0)