forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -128,6 +128,11 @@ BaseTextMark::~BaseTextMark()
|
||||
Internal::TextEditorPlugin::instance()->baseTextMarkRegistry()->remove(this);
|
||||
}
|
||||
|
||||
void BaseTextMark::updateLineNumber(int lineNumber)
|
||||
{
|
||||
m_line = lineNumber;
|
||||
}
|
||||
|
||||
void BaseTextMark::updateMarker()
|
||||
{
|
||||
if (m_markableInterface)
|
||||
|
||||
Reference in New Issue
Block a user