Merge pull request #977 from manongjohn/fix_implicit_hold_replace_level

Fix Replace Level for Implicit Holds
This commit is contained in:
manongjohn 2022-04-20 09:47:57 -04:00 committed by GitHub
commit fea5b4a6c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1831,7 +1831,7 @@ bool ReplaceLevelPopup::execute() {
int r, c;
for (c = m_range.m_c0; c <= m_range.m_c1; c++)
for (r = m_range.m_r0; r <= m_range.m_r1; r++) {
TXshCell cell = xsh->getCell(r, c);
TXshCell cell = xsh->getCell(r, c, false);
if (!cell.m_level.getPointer()) continue;
cell.m_level = xl;
xsh->setCell(r, c, cell);
@ -1843,7 +1843,7 @@ bool ReplaceLevelPopup::execute() {
std::set<int>::iterator i = m_columnRange.begin();
while (i != m_columnRange.end()) {
for (int r = 0; r < frameLength; r++) {
TXshCell cell = xsh->getCell(r, *i);
TXshCell cell = xsh->getCell(r, *i, false);
if (!cell.m_level.getPointer()) continue;
cell.m_level = xl;
xsh->setCell(r, *i, cell);