Skip to content

Commit

Permalink
Github Issue #184: Removed some unnecessary code before proceeding fu…
Browse files Browse the repository at this point in the history
…rther
  • Loading branch information
AngryFender committed Jul 8, 2024
1 parent d6bd5f7 commit 51bee10
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mktextdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1178,14 +1178,11 @@ void MkTextDocument::showMKSymbolsFromCurrentSelectedBlocks( SelectRange * const
removeCheckBoxLinkMousePosition(block,formatData,range);

//insert block from raw document
QTextCursor cursor(this);
cursor.beginEditBlock();
cursor.setPosition(block.position());
QTextCursor cursor(block);
cursor.movePosition(QTextCursor::StartOfBlock);
cursor.movePosition(QTextCursor::EndOfBlock,QTextCursor::KeepAnchor);
QString line = rawDocument.findBlockByNumber(block.blockNumber()).text();
cursor.insertText(line);
cursor.endEditBlock();

identifyFormatData(block);

Expand Down

0 comments on commit 51bee10

Please sign in to comment.