[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kturtle/src
From:       Cies Breijs <kde () showroommama ! nl>
Date:       2006-10-03 9:20:00
Message-ID: 1159867200.029834.28137.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 591828 by cies:

fixed marker drawing bug

 M  +3 -3      editor.cpp  


--- trunk/KDE/kdeedu/kturtle/src/editor.cpp #591827:591828
@@ -277,10 +277,10 @@
 	// mark the selection
 	QTextCursor cursor(editor->document());
 	cursor.movePosition(QTextCursor::Start,         QTextCursor::MoveAnchor);
-	cursor.movePosition(QTextCursor::Down,          QTextCursor::MoveAnchor, startRow - 1);
+	cursor.movePosition(QTextCursor::NextBlock,     QTextCursor::MoveAnchor, startRow - 1);
 	cursor.movePosition(QTextCursor::NextCharacter, QTextCursor::MoveAnchor, startCol - 1);
-	cursor.movePosition(QTextCursor::Down,          QTextCursor::KeepAnchor, endRow - startRow);
-	cursor.movePosition(QTextCursor::StartOfLine,   QTextCursor::KeepAnchor);
+	cursor.movePosition(QTextCursor::NextBlock,     QTextCursor::KeepAnchor, endRow - startRow);
+	cursor.movePosition(QTextCursor::StartOfBlock,  QTextCursor::KeepAnchor);
 	cursor.movePosition(QTextCursor::NextCharacter, QTextCursor::KeepAnchor, endCol - 1);
 	cursor.setCharFormat(charFormat);
 	isMarked = true;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic