Skip to content

Commit

Permalink
fix: After column editing, the withdrawal lines are not withdrawn tog…
Browse files Browse the repository at this point in the history
…ether

After column editing,the withdrawal
lines withdrawn line by line.

Log: the withdrawal lines withdrawn together
Bug: https://pms.uniontech.com/bug-view-241475.html
  • Loading branch information
lJxDabab committed Jan 25, 2024
1 parent 7e0910f commit 63468bd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/editor/dtextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2545,12 +2545,8 @@ void TextEdit::cut(bool ignoreCheck)
data += "\n";
}
//删除有选择
for (int i = 0; i < m_altModSelections.size(); i++) {
if (m_altModSelections[i].cursor.hasSelection()) {
QUndoCommand *pDeleteStack = new DeleteTextUndoCommand(m_altModSelections[i].cursor, this);
QUndoCommand *pDeleteStack = new DeleteTextUndoCommand(m_altModSelections, this);
m_pUndoStack->push(pDeleteStack);
}
}

//设置到剪切板
QClipboard *clipboard = QApplication::clipboard(); //获取系统剪贴板指针
Expand Down

0 comments on commit 63468bd

Please sign in to comment.