Skip to content

Commit

Permalink
Only update the cursor position when text view is visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Apr 7, 2017
1 parent d48d23a commit 0bb681e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Editors/BaseEditor.cpp
Expand Up @@ -1256,7 +1256,7 @@ void PlainTextEdit::updateHighlights()
*/
void PlainTextEdit::updateCursorPosition()
{
if (mpBaseEditor->getModelWidget()) {
if (mpBaseEditor->getModelWidget() && isVisible()) {
const QTextBlock block = textCursor().block();
const int line = block.blockNumber() + 1;
const int column = textCursor().columnNumber();
Expand Down

0 comments on commit 0bb681e

Please sign in to comment.