瀏覽代碼

Fix highlighting update when moving a file to Header Files from another editable category. (The first character was read from the wrong buffer.)

git-svn-id: file:///var/svn/tigccpp/branches/ktigcc-1-branch@986 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 年之前
父節點
當前提交
1aa460cf17
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 3 1
      ktigcc/NEWS
  2. 1 1
      ktigcc/mainform.ui.h

+ 3 - 1
ktigcc/NEWS

@@ -1,10 +1,12 @@
 This is a summary of the changes in KTIGCC since the first alpha release:
 
-CVS HEAD (2007-01-29):
+CVS ktigcc-1-branch (2007-02-26):
 
 * Added a full changelog (generated from CVS logs).
 * Fixed stray indentation at the end of the line when autoclosing a curly brace
   as ENTER is pressed.
+* Fixed highlighting update when moving a file to Header Files from another
+  editable category. (The first character was read from the wrong buffer.)
 
 
 KTIGCC 1.06 (2006-11-25):

+ 1 - 1
ktigcc/mainform.ui.h

@@ -547,7 +547,7 @@ class DnDListView : public KListView {
                 && static_cast<ListViewFile *>(currItem)->kateView) {
               // update highlighting mode
               uint cnt=static_cast<ListViewFile *>(currItem)->kateView->getDoc()->hlModeCount(), i;
-              QString fileText=static_cast<ListViewFile *>(currItem)->textBuffer;
+              QString fileText=static_cast<ListViewFile *>(currItem)->kateView->getDoc()->text();
               for (i=0; i<cnt; i++) {
                 if (!static_cast<ListViewFile *>(currItem)->kateView->getDoc()->hlModeName(i).compare(
                     (destCategory==qllFilesListItem?