Skip to content

Commit c7d84b3

Browse files
authored
Merge pull request #208 from atsju/JST/fix193
fix code that mixes wavefront index and name
2 parents e9809c4 + a8ec143 commit c7d84b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

surfacemanager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1788,8 +1788,9 @@ void SurfaceManager::subtractWavefronts(){
17881788
QList<QString> list;
17891789
QList<int> doThese = m_surfaceTools->SelectedWaveFronts();
17901790
for (int i = 0; i < m_wavefronts.size(); ++i){
1791-
if (!m_wavefronts[i]->name.contains(doThese[0]))
1791+
if (!doThese.contains(i)) {
17921792
list.append(m_wavefronts[i]->name);
1793+
}
17931794
}
17941795
subtractWavefronatsDlg dlg(list);
17951796
QScreen *screen = QGuiApplication::primaryScreen();

0 commit comments

Comments
 (0)