summaryrefslogtreecommitdiff
path: root/src/plugins/bookmarks
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@nokia.com>2012-02-14 15:08:32 +0100
committerDaniel Teske <daniel.teske@nokia.com>2012-02-15 17:22:34 +0100
commitcc04261e78b366b4d134adfda96388b6289d6939 (patch)
treecb308cb06ba651dd16d1d4bc93b6e2a868ec9f9f /src/plugins/bookmarks
parent5e27104f56adf8075a55e15603ee5c69be83392d (diff)
downloadqt-creator-cc04261e78b366b4d134adfda96388b6289d6939.tar.gz
Fix BaseTextmark lineNumber tracking
The following sequence would add the BaseTextmark to the wrong line: 1) Add a mark on line x 2) Move line x down by addign newlines above 3) Close and reopen the file => Mark would be readded to line x Change-Id: Ia5d580b5893331974fb908e367b74df69fbb6572 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/bookmarks')
-rw-r--r--src/plugins/bookmarks/bookmark.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/bookmarks/bookmark.cpp b/src/plugins/bookmarks/bookmark.cpp
index 71e2777202..4f2d7cf144 100644
--- a/src/plugins/bookmarks/bookmark.cpp
+++ b/src/plugins/bookmarks/bookmark.cpp
@@ -62,6 +62,7 @@ void Bookmark::updateLineNumber(int lineNumber)
m_lineNumber = lineNumber;
m_manager->updateBookmark(this);
}
+ BaseTextMark::updateLineNumber(lineNumber);
}
void Bookmark::updateBlock(const QTextBlock &block)