Skip to content

Commit

Permalink
Github Issue #109: Reverting this change to ensure the code blocks ar…
Browse files Browse the repository at this point in the history
…e being maintained properly
  • Loading branch information
AngryFender committed Oct 23, 2023
1 parent 0ad71cd commit 361b5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mktextdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ void MkTextDocument::hideMKSymbolsFromDrawingRect(QRect rect, bool hasSelection,
}

for(QTextBlock block = this->begin(); block != this->end(); block = block.next()){
if( layout->blockBoundingRect(block).bottom() < (rect.bottom()+50) && layout->blockBoundingRect(block).top() > (rect.top()-40)){
if( layout->blockBoundingRect(block).bottom() < (rect.bottom()+40) && layout->blockBoundingRect(block).top() > (rect.top()-15)){

int currentBlockNumber = block.blockNumber();
QTextBlockUserData* data =block.userData();
Expand Down

0 comments on commit 361b5ef

Please sign in to comment.